mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
64 lines
2.3 KiB
JSON
64 lines
2.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":27,"index":43}},
|
|
"errors": [
|
|
"SyntaxError: Identifier 'A' has already been declared. (2:17)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":43,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":27,"index":43}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":13,"end":15,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":15,"index":15}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "DeclareFunction",
|
|
"start":16,"end":43,"loc":{"start":{"line":2,"column":0,"index":16},"end":{"line":2,"column":27,"index":43}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":33,"end":42,"loc":{"start":{"line":2,"column":17,"index":33},"end":{"line":2,"column":26,"index":42},"identifierName":"A"},
|
|
"name": "A",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":34,"end":42,"loc":{"start":{"line":2,"column":18,"index":34},"end":{"line":2,"column":26,"index":42}},
|
|
"typeAnnotation": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":34,"end":42,"loc":{"start":{"line":2,"column":18,"index":34},"end":{"line":2,"column":26,"index":42}},
|
|
"typeParameters": null,
|
|
"params": [],
|
|
"rest": null,
|
|
"this": null,
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start":38,"end":42,"loc":{"start":{"line":2,"column":22,"index":38},"end":{"line":2,"column":26,"index":42}}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"predicate": null
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|