mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
87 lines
3.6 KiB
JSON
87 lines
3.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":51}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":51}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":51}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":16,"end":51,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":51}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":20,"end":48,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":30,"index":48}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":20,"end":30,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":12,"index":30},"identifierName":"@@iterator"},
|
|
"name": "@@iterator"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":20,"end":48,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":30,"index":48}},
|
|
"params": [],
|
|
"rest": null,
|
|
"typeParameters": null,
|
|
"this": null,
|
|
"returnType": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":34,"end":48,"loc":{"start":{"line":2,"column":16,"index":34},"end":{"line":2,"column":30,"index":48}},
|
|
"typeParameters": {
|
|
"type": "TypeParameterInstantiation",
|
|
"start":42,"end":48,"loc":{"start":{"line":2,"column":24,"index":42},"end":{"line":2,"column":30,"index":48}},
|
|
"params": [
|
|
{
|
|
"type": "GenericTypeAnnotation",
|
|
"start":43,"end":47,"loc":{"start":{"line":2,"column":25,"index":43},"end":{"line":2,"column":29,"index":47}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":43,"end":47,"loc":{"start":{"line":2,"column":25,"index":43},"end":{"line":2,"column":29,"index":47},"identifierName":"File"},
|
|
"name": "File"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":34,"end":42,"loc":{"start":{"line":2,"column":16,"index":34},"end":{"line":2,"column":24,"index":42},"identifierName":"Iterator"},
|
|
"name": "Iterator"
|
|
}
|
|
}
|
|
},
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|