mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +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
80 lines
3.2 KiB
JSON
80 lines
3.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":47}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":47}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "SwitchStatement",
|
|
"start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":47}},
|
|
"discriminant": {
|
|
"type": "NumericLiteral",
|
|
"start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
},
|
|
"cases": [
|
|
{
|
|
"type": "SwitchCase",
|
|
"start":14,"end":45,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":33,"index":45}},
|
|
"consequent": [
|
|
{
|
|
"type": "ForStatement",
|
|
"start":22,"end":45,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":33,"index":45}},
|
|
"init": {
|
|
"type": "VariableDeclaration",
|
|
"start":26,"end":41,"loc":{"start":{"line":2,"column":14,"index":26},"end":{"line":2,"column":29,"index":41}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":32,"end":41,"loc":{"start":{"line":2,"column":20,"index":32},"end":{"line":2,"column":29,"index":41}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":32,"end":33,"loc":{"start":{"line":2,"column":20,"index":32},"end":{"line":2,"column":21,"index":33},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start":36,"end":41,"loc":{"start":{"line":2,"column":24,"index":36},"end":{"line":2,"column":29,"index":41}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":36,"end":39,"loc":{"start":{"line":2,"column":24,"index":36},"end":{"line":2,"column":27,"index":39},"identifierName":"bar"},
|
|
"name": "bar"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "using"
|
|
},
|
|
"test": null,
|
|
"update": null,
|
|
"body": {
|
|
"type": "EmptyStatement",
|
|
"start":44,"end":45,"loc":{"start":{"line":2,"column":32,"index":44},"end":{"line":2,"column":33,"index":45}}
|
|
}
|
|
}
|
|
],
|
|
"test": {
|
|
"type": "NumericLiteral",
|
|
"start":19,"end":20,"loc":{"start":{"line":2,"column":7,"index":19},"end":{"line":2,"column":8,"index":20}},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|