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":75,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":75}},
"errors": [
"SyntaxError: Identifier 'f' has already been declared. (2:19)",
"SyntaxError: Identifier 'g' has already been declared. (6:8)"
],
"program": {
"type": "Program",
"start":0,"end":75,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":1,"index":75}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "BlockStatement",
"start":0,"end":33,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":33}},
"body": [
{
"type": "VariableDeclaration",
"start":4,"end":31,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":29,"index":31}},
"declarations": [
{
"type": "VariableDeclarator",
"start":10,"end":19,"loc":{"start":{"line":2,"column":8,"index":10},"end":{"line":2,"column":17,"index":19}},
"id": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":2,"column":8,"index":10},"end":{"line":2,"column":9,"index":11},"identifierName":"f"},
"name": "f"
},
"init": {
"type": "CallExpression",
"start":14,"end":19,"loc":{"start":{"line":2,"column":12,"index":14},"end":{"line":2,"column":17,"index":19}},
"callee": {
"type": "Identifier",
"start":14,"end":17,"loc":{"start":{"line":2,"column":12,"index":14},"end":{"line":2,"column":15,"index":17},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
},
{
"type": "VariableDeclarator",
"start":21,"end":30,"loc":{"start":{"line":2,"column":19,"index":21},"end":{"line":2,"column":28,"index":30}},
"id": {
"type": "Identifier",
"start":21,"end":22,"loc":{"start":{"line":2,"column":19,"index":21},"end":{"line":2,"column":20,"index":22},"identifierName":"f"},
"name": "f"
},
"init": {
"type": "CallExpression",
"start":25,"end":30,"loc":{"start":{"line":2,"column":23,"index":25},"end":{"line":2,"column":28,"index":30}},
"callee": {
"type": "Identifier",
"start":25,"end":28,"loc":{"start":{"line":2,"column":23,"index":25},"end":{"line":2,"column":26,"index":28},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
],
"kind": "using"
}
],
"directives": []
},
{
"type": "BlockStatement",
"start":34,"end":75,"loc":{"start":{"line":4,"column":0,"index":34},"end":{"line":7,"column":1,"index":75}},
"body": [
{
"type": "VariableDeclaration",
"start":38,"end":54,"loc":{"start":{"line":5,"column":2,"index":38},"end":{"line":5,"column":18,"index":54}},
"declarations": [
{
"type": "VariableDeclarator",
"start":44,"end":53,"loc":{"start":{"line":5,"column":8,"index":44},"end":{"line":5,"column":17,"index":53}},
"id": {
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":5,"column":8,"index":44},"end":{"line":5,"column":9,"index":45},"identifierName":"g"},
"name": "g"
},
"init": {
"type": "CallExpression",
"start":48,"end":53,"loc":{"start":{"line":5,"column":12,"index":48},"end":{"line":5,"column":17,"index":53}},
"callee": {
"type": "Identifier",
"start":48,"end":51,"loc":{"start":{"line":5,"column":12,"index":48},"end":{"line":5,"column":15,"index":51},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
],
"kind": "using"
},
{
"type": "VariableDeclaration",
"start":57,"end":73,"loc":{"start":{"line":6,"column":2,"index":57},"end":{"line":6,"column":18,"index":73}},
"declarations": [
{
"type": "VariableDeclarator",
"start":63,"end":72,"loc":{"start":{"line":6,"column":8,"index":63},"end":{"line":6,"column":17,"index":72}},
"id": {
"type": "Identifier",
"start":63,"end":64,"loc":{"start":{"line":6,"column":8,"index":63},"end":{"line":6,"column":9,"index":64},"identifierName":"g"},
"name": "g"
},
"init": {
"type": "CallExpression",
"start":67,"end":72,"loc":{"start":{"line":6,"column":12,"index":67},"end":{"line":6,"column":17,"index":72}},
"callee": {
"type": "Identifier",
"start":67,"end":70,"loc":{"start":{"line":6,"column":12,"index":67},"end":{"line":6,"column":15,"index":70},"identifierName":"foo"},
"name": "foo"
},
"arguments": []
}
}
],
"kind": "using"
}
],
"directives": []
}
],
"directives": []
}
}