mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
78 lines
3.3 KiB
JSON
78 lines
3.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareModule",
|
|
"start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":63,"index":63}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":17,"end":63,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":63,"index":63}},
|
|
"body": [
|
|
{
|
|
"type": "DeclareModuleExports",
|
|
"start":19,"end":61,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":61,"index":61}},
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":41,"end":61,"loc":{"start":{"line":1,"column":41,"index":41},"end":{"line":1,"column":61,"index":61}},
|
|
"typeAnnotation": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":43,"end":61,"loc":{"start":{"line":1,"column":43,"index":43},"end":{"line":1,"column":61,"index":61}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":45,"end":58,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":58,"index":58}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":45,"end":48,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":48,"index":48},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":45,"end":58,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":58,"index":58}},
|
|
"params": [],
|
|
"rest": null,
|
|
"typeParameters": null,
|
|
"this": null,
|
|
"returnType": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":52,"end":58,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":58,"index":58}}
|
|
}
|
|
},
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false,
|
|
"inexact": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"kind": "CommonJS"
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|