Support Flow this parameter annotations (#12234)
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
"params": [],
|
||||
"rest": null,
|
||||
"typeParameters": null,
|
||||
"this": null,
|
||||
"returnType": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start":34,"end":48,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":30}},
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"params": [],
|
||||
"rest": null,
|
||||
"typeParameters": null,
|
||||
"this": null,
|
||||
"returnType": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start":39,"end":53,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":35}},
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
"start":30,"end":42,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":42}},
|
||||
"params": [],
|
||||
"rest": null,
|
||||
"this": null,
|
||||
"returnType": {
|
||||
"type": "StringTypeAnnotation",
|
||||
"start":36,"end":42,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":42}}
|
||||
@@ -70,6 +71,10 @@
|
||||
"argument": {
|
||||
"type": "TypeCastExpression",
|
||||
"start":57,"end":63,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":16}},
|
||||
"extra": {
|
||||
"parenthesized": true,
|
||||
"parenStart": 56
|
||||
},
|
||||
"expression": {
|
||||
"type": "NumericLiteral",
|
||||
"start":57,"end":58,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11}},
|
||||
@@ -86,10 +91,6 @@
|
||||
"type": "AnyTypeAnnotation",
|
||||
"start":60,"end":63,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":16}}
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"parenthesized": true,
|
||||
"parenStart": 56
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
"start":35,"end":47,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":47}},
|
||||
"params": [],
|
||||
"rest": null,
|
||||
"this": null,
|
||||
"returnType": {
|
||||
"type": "StringTypeAnnotation",
|
||||
"start":41,"end":47,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":47}}
|
||||
@@ -70,6 +71,10 @@
|
||||
"argument": {
|
||||
"type": "TypeCastExpression",
|
||||
"start":62,"end":68,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":16}},
|
||||
"extra": {
|
||||
"parenthesized": true,
|
||||
"parenStart": 61
|
||||
},
|
||||
"expression": {
|
||||
"type": "NumericLiteral",
|
||||
"start":62,"end":63,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":11}},
|
||||
@@ -86,10 +91,6 @@
|
||||
"type": "AnyTypeAnnotation",
|
||||
"start":65,"end":68,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":16}}
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"parenthesized": true,
|
||||
"parenStart": 61
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"params": [],
|
||||
"rest": null,
|
||||
"typeParameters": null,
|
||||
"this": null,
|
||||
"returnType": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start":30,"end":44,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":30}},
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
"params": [],
|
||||
"rest": null,
|
||||
"typeParameters": null,
|
||||
"this": null,
|
||||
"returnType": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start":35,"end":49,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":35}},
|
||||
|
||||
Reference in New Issue
Block a user