From d4ede122fcc54b44d81442d07769261f349adc30 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 6 Jul 2020 23:49:36 -0400 Subject: [PATCH] Fix span of MethodProp (#877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix span of MethodProp (needs to include async keyword). Co-authored-by: 강동윤 --- ecmascript/ast/Cargo.toml | 2 +- ecmascript/ast/src/prop.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ecmascript/ast/Cargo.toml b/ecmascript/ast/Cargo.toml index a82b5fe1e60..cb1eb7f59d4 100644 --- a/ecmascript/ast/Cargo.toml +++ b/ecmascript/ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "swc_ecma_ast" -version = "0.23.0" +version = "0.23.1" authors = ["강동윤 "] license = "Apache-2.0/MIT" repository = "https://github.com/swc-project/swc.git" diff --git a/ecmascript/ast/src/prop.rs b/ecmascript/ast/src/prop.rs index 909409d098b..24a21e9682b 100644 --- a/ecmascript/ast/src/prop.rs +++ b/ecmascript/ast/src/prop.rs @@ -75,11 +75,10 @@ pub struct SetterProp { #[ast_node("MethodProperty")] #[derive(Eq, Hash)] pub struct MethodProp { - #[span(lo)] pub key: PropName, #[serde(flatten)] - #[span(hi)] + #[span] pub function: Function, }