Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/explicit-resource-management/invalid-using-binding-let/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":22}},
4 "errors": [
5 "SyntaxError: 'let' is not allowed to be used as a name in 'let' or 'const' declarations. (2:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":22}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "BlockStatement",
15 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":22}},
16 "body": [
17 {
18 "type": "VariableDeclaration",
19 "start":4,"end":20,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":18,"index":20}},
20 "declarations": [
21 {
22 "type": "VariableDeclarator",
23 "start":10,"end":19,"loc":{"start":{"line":2,"column":8,"index":10},"end":{"line":2,"column":17,"index":19}},
24 "id": {
25 "type": "Identifier",
26 "start":10,"end":13,"loc":{"start":{"line":2,"column":8,"index":10},"end":{"line":2,"column":11,"index":13},"identifierName":"let"},
27 "name": "let"
28 },
29 "init": {
30 "type": "CallExpression",
31 "start":16,"end":19,"loc":{"start":{"line":2,"column":14,"index":16},"end":{"line":2,"column":17,"index":19}},
32 "callee": {
33 "type": "Identifier",
34 "start":16,"end":17,"loc":{"start":{"line":2,"column":14,"index":16},"end":{"line":2,"column":15,"index":17},"identifierName":"h"},
35 "name": "h"
36 },
37 "arguments": []
38 }
39 }
40 ],
41 "kind": "using"
42 }
43 ],
44 "directives": []
45 }
46 ],
47 "directives": []
48 }
49 }