mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
comment
This commit is contained in:
@@ -1754,6 +1754,9 @@
|
||||
optional: !!prop.soak,
|
||||
shorthand: !!prop.shorthand
|
||||
};
|
||||
// When the `Value` has properties, the location data of a `MemberExpression` AST node
|
||||
// corresponding to a given property should span the location of the `Value`'s `base`
|
||||
// (including parens if present) through the property's location
|
||||
Object.assign(ret, mergeAstLocationData(this.base.astLocationData(), prop.astLocationData()));
|
||||
}
|
||||
return ret;
|
||||
|
||||
@@ -1160,6 +1160,9 @@ exports.Value = class Value extends Base
|
||||
computed: prop instanceof Index or prop.name?.unwrap() not instanceof PropertyName
|
||||
optional: !!prop.soak
|
||||
shorthand: !!prop.shorthand
|
||||
# When the `Value` has properties, the location data of a `MemberExpression` AST node
|
||||
# corresponding to a given property should span the location of the `Value`'s `base`
|
||||
# (including parens if present) through the property's location
|
||||
Object.assign ret, mergeAstLocationData(@base.astLocationData(), prop.astLocationData())
|
||||
ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user