| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}}, |
| 7 |
"sourceType": "module", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "DeclareClass", |
| 12 |
"start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"A"}, |
| 16 |
"name": "A" |
| 17 |
}, |
| 18 |
"typeParameters": null, |
| 19 |
"extends": [], |
| 20 |
"implements": [], |
| 21 |
"mixins": [], |
| 22 |
"body": { |
| 23 |
"type": "ObjectTypeAnnotation", |
| 24 |
"start":16,"end":59,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":59,"index":59}}, |
| 25 |
"callProperties": [], |
| 26 |
"properties": [ |
| 27 |
{ |
| 28 |
"type": "ObjectTypeProperty", |
| 29 |
"start":18,"end":38,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":38,"index":38}}, |
| 30 |
"key": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":25,"end":28,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":28,"index":28},"identifierName":"foo"}, |
| 33 |
"name": "foo" |
| 34 |
}, |
| 35 |
"static": true, |
| 36 |
"proto": false, |
| 37 |
"kind": "init", |
| 38 |
"method": true, |
| 39 |
"value": { |
| 40 |
"type": "FunctionTypeAnnotation", |
| 41 |
"start":18,"end":38,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":38,"index":38}}, |
| 42 |
"params": [], |
| 43 |
"rest": null, |
| 44 |
"typeParameters": null, |
| 45 |
"this": null, |
| 46 |
"returnType": { |
| 47 |
"type": "NumberTypeAnnotation", |
| 48 |
"start":32,"end":38,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":38,"index":38}} |
| 49 |
} |
| 50 |
}, |
| 51 |
"optional": false |
| 52 |
}, |
| 53 |
{ |
| 54 |
"type": "ObjectTypeProperty", |
| 55 |
"start":40,"end":57,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":57,"index":57}}, |
| 56 |
"key": { |
| 57 |
"type": "Identifier", |
| 58 |
"start":47,"end":48,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":48,"index":48},"identifierName":"x"}, |
| 59 |
"name": "x" |
| 60 |
}, |
| 61 |
"static": true, |
| 62 |
"proto": false, |
| 63 |
"kind": "init", |
| 64 |
"method": false, |
| 65 |
"value": { |
| 66 |
"type": "StringTypeAnnotation", |
| 67 |
"start":51,"end":57,"loc":{"start":{"line":1,"column":51,"index":51},"end":{"line":1,"column":57,"index":57}} |
| 68 |
}, |
| 69 |
"variance": null, |
| 70 |
"optional": false |
| 71 |
} |
| 72 |
], |
| 73 |
"indexers": [], |
| 74 |
"internalSlots": [], |
| 75 |
"exact": false |
| 76 |
} |
| 77 |
} |
| 78 |
], |
| 79 |
"directives": [] |
| 80 |
} |
| 81 |
} |