Files
Huáng JùnliàngandGitHub 2d557f5b3e Materialize explicitResourceManagement parser plugin (#17346)
* 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
2025-06-29 22:34:30 +02:00

129 lines
5.6 KiB
JSON

{
"type": "File",
"start":0,"end":122,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":12,"column":1,"index":122}},
"program": {
"type": "Program",
"start":0,"end":122,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":12,"column":1,"index":122}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "SwitchStatement",
"start":0,"end":122,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":12,"column":1,"index":122}},
"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":65,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":6,"column":5,"index":65}},
"consequent": [
{
"type": "BlockStatement",
"start":26,"end":65,"loc":{"start":{"line":3,"column":4,"index":26},"end":{"line":6,"column":5,"index":65}},
"body": [
{
"type": "BlockStatement",
"start":34,"end":36,"loc":{"start":{"line":4,"column":6,"index":34},"end":{"line":4,"column":8,"index":36}},
"body": [],
"directives": []
},
{
"type": "VariableDeclaration",
"start":43,"end":59,"loc":{"start":{"line":5,"column":6,"index":43},"end":{"line":5,"column":22,"index":59}},
"declarations": [
{
"type": "VariableDeclarator",
"start":49,"end":58,"loc":{"start":{"line":5,"column":12,"index":49},"end":{"line":5,"column":21,"index":58}},
"id": {
"type": "Identifier",
"start":49,"end":50,"loc":{"start":{"line":5,"column":12,"index":49},"end":{"line":5,"column":13,"index":50},"identifierName":"x"},
"name": "x"
},
"init": {
"type": "CallExpression",
"start":53,"end":58,"loc":{"start":{"line":5,"column":16,"index":53},"end":{"line":5,"column":21,"index":58}},
"callee": {
"type": "Identifier",
"start":53,"end":56,"loc":{"start":{"line":5,"column":16,"index":53},"end":{"line":5,"column":19,"index":56},"identifierName":"bar"},
"name": "bar"
},
"arguments": []
}
}
],
"kind": "using"
}
],
"directives": []
}
],
"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
}
},
{
"type": "SwitchCase",
"start":68,"end":120,"loc":{"start":{"line":7,"column":2,"index":68},"end":{"line":11,"column":5,"index":120}},
"consequent": [
{
"type": "BlockStatement",
"start":81,"end":120,"loc":{"start":{"line":8,"column":4,"index":81},"end":{"line":11,"column":5,"index":120}},
"body": [
{
"type": "BlockStatement",
"start":89,"end":91,"loc":{"start":{"line":9,"column":6,"index":89},"end":{"line":9,"column":8,"index":91}},
"body": [],
"directives": []
},
{
"type": "VariableDeclaration",
"start":98,"end":114,"loc":{"start":{"line":10,"column":6,"index":98},"end":{"line":10,"column":22,"index":114}},
"declarations": [
{
"type": "VariableDeclarator",
"start":104,"end":113,"loc":{"start":{"line":10,"column":12,"index":104},"end":{"line":10,"column":21,"index":113}},
"id": {
"type": "Identifier",
"start":104,"end":105,"loc":{"start":{"line":10,"column":12,"index":104},"end":{"line":10,"column":13,"index":105},"identifierName":"x"},
"name": "x"
},
"init": {
"type": "CallExpression",
"start":108,"end":113,"loc":{"start":{"line":10,"column":16,"index":108},"end":{"line":10,"column":21,"index":113}},
"callee": {
"type": "Identifier",
"start":108,"end":111,"loc":{"start":{"line":10,"column":16,"index":108},"end":{"line":10,"column":19,"index":111},"identifierName":"bar"},
"name": "bar"
},
"arguments": []
}
}
],
"kind": "using"
}
],
"directives": []
}
],
"test": null
}
]
}
],
"directives": []
}
}