babel-parser(flow): Set this property to null for FunctionTypeAnnotation without parens (#12930)
* Add null property to FunctionTypeAnnotation without parens * Update tests * Update tests
This commit is contained in:
@@ -1649,6 +1649,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
|
||||
const node = this.startNodeAt(param.start, param.loc.start);
|
||||
node.params = [this.reinterpretTypeAsFunctionTypeParam(param)];
|
||||
node.rest = null;
|
||||
node.this = null;
|
||||
node.returnType = this.flowParseType();
|
||||
node.typeParameters = null;
|
||||
return this.finishNode(node, "FunctionTypeAnnotation");
|
||||
|
||||
Reference in New Issue
Block a user