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

85 lines
3.6 KiB
JSON

{
"type": "File",
"start":0,"end":81,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":81}},
"program": {
"type": "Program",
"start":0,"end":81,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":81}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":81,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":81}},
"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":81,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":4,"column":1,"index":81}},
"body": [
{
"type": "VariableDeclaration",
"start":23,"end":46,"loc":{"start":{"line":2,"column":2,"index":23},"end":{"line":2,"column":25,"index":46}},
"declarations": [
{
"type": "VariableDeclarator",
"start":35,"end":45,"loc":{"start":{"line":2,"column":14,"index":35},"end":{"line":2,"column":24,"index":45}},
"id": {
"type": "Identifier",
"start":35,"end":40,"loc":{"start":{"line":2,"column":14,"index":35},"end":{"line":2,"column":19,"index":40},"identifierName":"using"},
"name": "using"
},
"init": {
"type": "Identifier",
"start":43,"end":45,"loc":{"start":{"line":2,"column":22,"index":43},"end":{"line":2,"column":24,"index":45},"identifierName":"of"},
"name": "of"
}
}
],
"kind": "await using"
},
{
"type": "ForOfStatement",
"start":49,"end":79,"loc":{"start":{"line":3,"column":2,"index":49},"end":{"line":3,"column":32,"index":79}},
"await": false,
"left": {
"type": "VariableDeclaration",
"start":54,"end":71,"loc":{"start":{"line":3,"column":7,"index":54},"end":{"line":3,"column":24,"index":71}},
"declarations": [
{
"type": "VariableDeclarator",
"start":66,"end":71,"loc":{"start":{"line":3,"column":19,"index":66},"end":{"line":3,"column":24,"index":71}},
"id": {
"type": "Identifier",
"start":66,"end":71,"loc":{"start":{"line":3,"column":19,"index":66},"end":{"line":3,"column":24,"index":71},"identifierName":"using"},
"name": "using"
},
"init": null
}
],
"kind": "await using"
},
"right": {
"type": "Identifier",
"start":75,"end":77,"loc":{"start":{"line":3,"column":28,"index":75},"end":{"line":3,"column":30,"index":77},"identifierName":"of"},
"name": "of"
},
"body": {
"type": "EmptyStatement",
"start":78,"end":79,"loc":{"start":{"line":3,"column":31,"index":78},"end":{"line":3,"column":32,"index":79}}
}
}
],
"directives": []
}
}
],
"directives": []
}
}