mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
79 lines
3.0 KiB
JSON
79 lines
3.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
|
|
"errors": [
|
|
"SyntaxError: The only accepted module attribute is `type`. (1:46)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportDefaultSpecifier",
|
|
"start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10},"identifierName":"foo"},
|
|
"name": "foo"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start":16,"end":26,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":26,"index":26}},
|
|
"extra": {
|
|
"rawValue": "foo.json",
|
|
"raw": "\"foo.json\""
|
|
},
|
|
"value": "foo.json"
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "ImportAttribute",
|
|
"start":32,"end":44,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":44,"index":44}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":32,"end":36,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":36,"index":36},"identifierName":"type"},
|
|
"name": "type"
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":38,"end":44,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":44,"index":44}},
|
|
"extra": {
|
|
"rawValue": "json",
|
|
"raw": "\"json\""
|
|
},
|
|
"value": "json"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportAttribute",
|
|
"start":46,"end":68,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":68,"index":68}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":46,"end":60,"loc":{"start":{"line":1,"column":46,"index":46},"end":{"line":1,"column":60,"index":60},"identifierName":"hasOwnProperty"},
|
|
"name": "hasOwnProperty"
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":62,"end":68,"loc":{"start":{"line":1,"column":62,"index":62},"end":{"line":1,"column":68,"index":68}},
|
|
"extra": {
|
|
"rawValue": "true",
|
|
"raw": "\"true\""
|
|
},
|
|
"value": "true"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|