mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fix Parens
This commit is contained in:
@@ -5470,12 +5470,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
astType() {
|
||||
return this.body.unwrap().astType();
|
||||
}
|
||||
|
||||
astProperties() {
|
||||
return this.body.unwrap().astProperties();
|
||||
ast() {
|
||||
return this.body.unwrap().ast();
|
||||
}
|
||||
|
||||
};
|
||||
@@ -5486,8 +5482,6 @@
|
||||
|
||||
}).call(this);
|
||||
|
||||
// Don’t unwrap for `astLocationData`; keep the location data of `Parens`.
|
||||
|
||||
//### StringWithInterpolations
|
||||
exports.StringWithInterpolations = StringWithInterpolations = (function() {
|
||||
class StringWithInterpolations extends Base {
|
||||
|
||||
@@ -3668,13 +3668,7 @@ exports.Parens = class Parens extends Base
|
||||
return @wrapInBraces fragments if @csxAttribute
|
||||
if bare then fragments else @wrapInParentheses fragments
|
||||
|
||||
astType: ->
|
||||
@body.unwrap().astType()
|
||||
|
||||
astProperties: ->
|
||||
@body.unwrap().astProperties()
|
||||
|
||||
# Don’t unwrap for `astLocationData`; keep the location data of `Parens`.
|
||||
ast: -> @body.unwrap().ast()
|
||||
|
||||
#### StringWithInterpolations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user