Parenthesized expressions (#8025)
* Add parser createParenthesizedExpressions option … When set to `true` we create `ParenthesizedExpression` nodes instead of setting `extra.parenthesized`. * Also update babel-parser.d.ts
This commit is contained in:
committed by
Justin Ridgewell
parent
417e72ebfd
commit
dd8b700a2c
@@ -102,6 +102,10 @@ export function SequenceExpression() {
|
||||
.getTypeAnnotation();
|
||||
}
|
||||
|
||||
export function ParenthesizedExpression() {
|
||||
return this.get("expression").getTypeAnnotation();
|
||||
}
|
||||
|
||||
export function AssignmentExpression() {
|
||||
return this.get("right").getTypeAnnotation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user