mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
108 lines
4.3 KiB
JSON
108 lines
4.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":67}},
|
|
"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":44,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":44,"index":44}},
|
|
"typeAnnotation": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":16,"end":44,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":44,"index":44}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":18,"end":42,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":42,"index":42}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":18,"end":28,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":28,"index":28},"identifierName":"@@iterator"},
|
|
"name": "@@iterator"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": false,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":30,"end":42,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":42,"index":42}},
|
|
"params": [],
|
|
"rest": null,
|
|
"this": null,
|
|
"returnType": {
|
|
"type": "StringTypeAnnotation",
|
|
"start":36,"end":42,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":42,"index":42}}
|
|
},
|
|
"typeParameters": null
|
|
},
|
|
"variance": null,
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false,
|
|
"inexact": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":45,"end":67,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":3,"column":1,"index":67}},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start":49,"end":65,"loc":{"start":{"line":2,"column":2,"index":49},"end":{"line":2,"column":18,"index":65}},
|
|
"argument": {
|
|
"type": "TypeCastExpression",
|
|
"start":57,"end":63,"loc":{"start":{"line":2,"column":10,"index":57},"end":{"line":2,"column":16,"index":63}},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"start":57,"end":58,"loc":{"start":{"line":2,"column":10,"index":57},"end":{"line":2,"column":11,"index":58}},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":58,"end":63,"loc":{"start":{"line":2,"column":11,"index":58},"end":{"line":2,"column":16,"index":63}},
|
|
"typeAnnotation": {
|
|
"type": "AnyTypeAnnotation",
|
|
"start":60,"end":63,"loc":{"start":{"line":2,"column":13,"index":60},"end":{"line":2,"column":16,"index":63}}
|
|
}
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 56
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|