mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* feat: materialize explicitResourceManagement plugin * remove explicitResourceManagement from parser option schema * remove no plugin tests * move parser tests to es2026 * remove explicitResourceManagement parser option usage * add missing options.json * remove explicitResourceManagement from prettier Babel parser config * fix rebase error * add failed typescript test
59 lines
2.4 KiB
JSON
59 lines
2.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
|
|
"errors": [
|
|
"SyntaxError: Lexical declaration cannot appear in a single-statement context. (2:9)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "BlockStatement",
|
|
"start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":29}},
|
|
"body": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"start":4,"end":27,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":25,"index":27}},
|
|
"body": {
|
|
"type": "VariableDeclaration",
|
|
"start":11,"end":27,"loc":{"start":{"line":2,"column":9,"index":11},"end":{"line":2,"column":25,"index":27}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":17,"end":26,"loc":{"start":{"line":2,"column":15,"index":17},"end":{"line":2,"column":24,"index":26}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":17,"end":18,"loc":{"start":{"line":2,"column":15,"index":17},"end":{"line":2,"column":16,"index":18},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start":21,"end":26,"loc":{"start":{"line":2,"column":19,"index":21},"end":{"line":2,"column":24,"index":26}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":21,"end":24,"loc":{"start":{"line":2,"column":19,"index":21},"end":{"line":2,"column":22,"index":24},"identifierName":"bar"},
|
|
"name": "bar"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "using"
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"start":4,"end":9,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":7,"index":9},"identifierName":"label"},
|
|
"name": "label"
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|