| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "DeclareModule", |
| 12 |
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"A"}, |
| 16 |
"name": "A" |
| 17 |
}, |
| 18 |
"body": { |
| 19 |
"type": "BlockStatement", |
| 20 |
"start":17,"end":52,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":52,"index":52}}, |
| 21 |
"body": [ |
| 22 |
{ |
| 23 |
"type": "DeclareFunction", |
| 24 |
"start":19,"end":50,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":50,"index":50}}, |
| 25 |
"id": { |
| 26 |
"type": "Identifier", |
| 27 |
"start":36,"end":49,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":49,"index":49},"identifierName":"foo"}, |
| 28 |
"name": "foo", |
| 29 |
"typeAnnotation": { |
| 30 |
"type": "TypeAnnotation", |
| 31 |
"start":39,"end":49,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":49,"index":49}}, |
| 32 |
"typeAnnotation": { |
| 33 |
"type": "FunctionTypeAnnotation", |
| 34 |
"start":39,"end":49,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":49,"index":49}}, |
| 35 |
"typeParameters": null, |
| 36 |
"params": [], |
| 37 |
"rest": null, |
| 38 |
"this": null, |
| 39 |
"returnType": { |
| 40 |
"type": "NumberTypeAnnotation", |
| 41 |
"start":43,"end":49,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":49,"index":49}} |
| 42 |
} |
| 43 |
} |
| 44 |
} |
| 45 |
}, |
| 46 |
"predicate": null |
| 47 |
} |
| 48 |
] |
| 49 |
}, |
| 50 |
"kind": "CommonJS" |
| 51 |
} |
| 52 |
], |
| 53 |
"directives": [] |
| 54 |
} |
| 55 |
} |