Fix span of MethodProp (#877)

- Fix span of MethodProp (needs to include async keyword).

Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
This commit is contained in:
David Sherret 2020-07-06 23:49:36 -04:00 committed by GitHub
parent 135149d6a8
commit d4ede122fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "swc_ecma_ast"
version = "0.23.0"
version = "0.23.1"
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
license = "Apache-2.0/MIT"
repository = "https://github.com/swc-project/swc.git"

View File

@ -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,
}