mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* refactor: remove EstreeImportExpression type * polish: recover from import spread and arity * fix linting errors * polish: print phase in import call errors * polish: update ImportCallNotNewExpression msg * node scripts/cleanup-fixtures.ts
86 lines
3.8 KiB
JSON
86 lines
3.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}},
|
|
"errors": [
|
|
"SyntaxError: Unexpected argument placeholder. (1:26)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":57,"index":57}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":6,"end":56,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":56,"index":56}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":16,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":16,"index":16},"identifierName":"importJSON"},
|
|
"name": "importJSON"
|
|
},
|
|
"init": {
|
|
"type": "ImportExpression",
|
|
"start":19,"end":56,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":56,"index":56}},
|
|
"source": {
|
|
"type": "ArgumentPlaceholder",
|
|
"start":26,"end":27,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":27,"index":27}}
|
|
},
|
|
"options": {
|
|
"type": "ObjectExpression",
|
|
"start":29,"end":55,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":55,"index":55}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":31,"end":53,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":53,"index":53}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":31,"end":35,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":35,"index":35},"identifierName":"with"},
|
|
"name": "with"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "ObjectExpression",
|
|
"start":37,"end":53,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":53,"index":53}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":39,"end":51,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":51,"index":51}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":39,"end":43,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":43,"index":43},"identifierName":"type"},
|
|
"name": "type"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":45,"end":51,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":51,"index":51}},
|
|
"extra": {
|
|
"rawValue": "json",
|
|
"raw": "\"json\""
|
|
},
|
|
"value": "json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|