Files

108 lines
4.3 KiB
JSON

{
"type": "File",
"start":0,"end":72,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":72}},
"program": {
"type": "Program",
"start":0,"end":72,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":72}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":72,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":72}},
"id": {
"type": "Identifier",
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
"name": "foo"
},
"generator": false,
"async": false,
"params": [],
"predicate": null,
"returnType": {
"type": "TypeAnnotation",
"start":14,"end":49,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":49,"index":49}},
"typeAnnotation": {
"type": "ObjectTypeAnnotation",
"start":16,"end":49,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":49,"index":49}},
"callProperties": [],
"properties": [
{
"type": "ObjectTypeProperty",
"start":18,"end":47,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":47,"index":47}},
"key": {
"type": "Identifier",
"start":18,"end":33,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":33,"index":33},"identifierName":"@@asyncIterator"},
"name": "@@asyncIterator"
},
"static": false,
"proto": false,
"kind": "init",
"method": false,
"value": {
"type": "FunctionTypeAnnotation",
"start":35,"end":47,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":47,"index":47}},
"params": [],
"rest": null,
"this": null,
"returnType": {
"type": "StringTypeAnnotation",
"start":41,"end":47,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":47,"index":47}}
},
"typeParameters": null
},
"variance": null,
"optional": false
}
],
"indexers": [],
"internalSlots": [],
"exact": false,
"inexact": false
}
},
"body": {
"type": "BlockStatement",
"start":50,"end":72,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":3,"column":1,"index":72}},
"body": [
{
"type": "ReturnStatement",
"start":54,"end":70,"loc":{"start":{"line":2,"column":2,"index":54},"end":{"line":2,"column":18,"index":70}},
"argument": {
"type": "TypeCastExpression",
"start":62,"end":68,"loc":{"start":{"line":2,"column":10,"index":62},"end":{"line":2,"column":16,"index":68}},
"expression": {
"type": "NumericLiteral",
"start":62,"end":63,"loc":{"start":{"line":2,"column":10,"index":62},"end":{"line":2,"column":11,"index":63}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"typeAnnotation": {
"type": "TypeAnnotation",
"start":63,"end":68,"loc":{"start":{"line":2,"column":11,"index":63},"end":{"line":2,"column":16,"index":68}},
"typeAnnotation": {
"type": "AnyTypeAnnotation",
"start":65,"end":68,"loc":{"start":{"line":2,"column":13,"index":65},"end":{"line":2,"column":16,"index":68}}
}
},
"extra": {
"parenthesized": true,
"parenStart": 61
}
}
}
],
"directives": []
}
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}