add inType assignment in flow parse declare method
This commit is contained in:
parent
a7f669e154
commit
9e0cc028ed
@ -42,8 +42,11 @@ pp.flow_parseDeclareFunction = function (node) {
|
||||
typeNode.rest = tmp.rest
|
||||
this.expect(tt.parenR)
|
||||
|
||||
var oldInType = this.inType
|
||||
this.inType = true
|
||||
this.expect(tt.colon)
|
||||
typeNode.returnType = this.flow_parseType()
|
||||
this.inType = oldInType
|
||||
|
||||
typeContainer.typeAnnotation = this.finishNode(typeNode, "FunctionTypeAnnotation")
|
||||
id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user