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

99 lines
4.3 KiB
JSON

{
"type": "File",
"start":0,"end":82,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":82}},
"program": {
"type": "Program",
"start":0,"end":82,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":82}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":82,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":82}},
"id": {
"type": "Identifier",
"start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"f"},
"name": "f"
},
"generator": false,
"async": true,
"params": [],
"body": {
"type": "BlockStatement",
"start":19,"end":82,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":5,"column":1,"index":82}},
"body": [
{
"type": "SwitchStatement",
"start":23,"end":80,"loc":{"start":{"line":2,"column":2,"index":23},"end":{"line":4,"column":3,"index":80}},
"discriminant": {
"type": "NumericLiteral",
"start":30,"end":31,"loc":{"start":{"line":2,"column":9,"index":30},"end":{"line":2,"column":10,"index":31}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"cases": [
{
"type": "SwitchCase",
"start":39,"end":76,"loc":{"start":{"line":3,"column":4,"index":39},"end":{"line":3,"column":41,"index":76}},
"consequent": [
{
"type": "ForStatement",
"start":47,"end":76,"loc":{"start":{"line":3,"column":12,"index":47},"end":{"line":3,"column":41,"index":76}},
"init": {
"type": "VariableDeclaration",
"start":51,"end":72,"loc":{"start":{"line":3,"column":16,"index":51},"end":{"line":3,"column":37,"index":72}},
"declarations": [
{
"type": "VariableDeclarator",
"start":63,"end":72,"loc":{"start":{"line":3,"column":28,"index":63},"end":{"line":3,"column":37,"index":72}},
"id": {
"type": "Identifier",
"start":63,"end":64,"loc":{"start":{"line":3,"column":28,"index":63},"end":{"line":3,"column":29,"index":64},"identifierName":"x"},
"name": "x"
},
"init": {
"type": "CallExpression",
"start":67,"end":72,"loc":{"start":{"line":3,"column":32,"index":67},"end":{"line":3,"column":37,"index":72}},
"callee": {
"type": "Identifier",
"start":67,"end":70,"loc":{"start":{"line":3,"column":32,"index":67},"end":{"line":3,"column":35,"index":70},"identifierName":"bar"},
"name": "bar"
},
"arguments": []
}
}
],
"kind": "await using"
},
"test": null,
"update": null,
"body": {
"type": "EmptyStatement",
"start":75,"end":76,"loc":{"start":{"line":3,"column":40,"index":75},"end":{"line":3,"column":41,"index":76}}
}
}
],
"test": {
"type": "NumericLiteral",
"start":44,"end":45,"loc":{"start":{"line":3,"column":9,"index":44},"end":{"line":3,"column":10,"index":45}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
]
}
],
"directives": []
}
}
],
"directives": []
}
}