| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":60,"index":60}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":60,"index":60}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "DeclareFunction", |
| 12 |
"start":0,"end":60,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":60,"index":60}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":17,"end":59,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":59,"index":59},"identifierName":"foo"}, |
| 16 |
"name": "foo", |
| 17 |
"typeAnnotation": { |
| 18 |
"type": "TypeAnnotation", |
| 19 |
"start":20,"end":59,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":59,"index":59}}, |
| 20 |
"typeAnnotation": { |
| 21 |
"type": "FunctionTypeAnnotation", |
| 22 |
"start":20,"end":59,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":59,"index":59}}, |
| 23 |
"typeParameters": null, |
| 24 |
"params": [ |
| 25 |
{ |
| 26 |
"type": "FunctionTypeParam", |
| 27 |
"start":21,"end":29,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":29,"index":29}}, |
| 28 |
"name": { |
| 29 |
"type": "Identifier", |
| 30 |
"start":21,"end":22,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":22,"index":22},"identifierName":"x"}, |
| 31 |
"name": "x" |
| 32 |
}, |
| 33 |
"optional": false, |
| 34 |
"typeAnnotation": { |
| 35 |
"type": "MixedTypeAnnotation", |
| 36 |
"start":24,"end":29,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":29,"index":29}} |
| 37 |
} |
| 38 |
} |
| 39 |
], |
| 40 |
"rest": null, |
| 41 |
"this": null, |
| 42 |
"returnType": { |
| 43 |
"type": "BooleanTypeAnnotation", |
| 44 |
"start":32,"end":39,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":39,"index":39}} |
| 45 |
} |
| 46 |
} |
| 47 |
} |
| 48 |
}, |
| 49 |
"predicate": { |
| 50 |
"type": "DeclaredPredicate", |
| 51 |
"start":40,"end":59,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":59,"index":59}}, |
| 52 |
"value": { |
| 53 |
"type": "BinaryExpression", |
| 54 |
"start":48,"end":58,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":58,"index":58}}, |
| 55 |
"left": { |
| 56 |
"type": "Identifier", |
| 57 |
"start":48,"end":49,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":49,"index":49},"identifierName":"x"}, |
| 58 |
"name": "x" |
| 59 |
}, |
| 60 |
"operator": "!==", |
| 61 |
"right": { |
| 62 |
"type": "NullLiteral", |
| 63 |
"start":54,"end":58,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":58,"index":58}} |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
], |
| 69 |
"directives": [] |
| 70 |
} |
| 71 |
} |