Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":50}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":50}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "BlockStatement",
12 "start":0,"end":50,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":50}},
13 "body": [
14 {
15 "type": "VariableDeclaration",
16 "start":4,"end":21,"loc":{"start":{"line":2,"column":2,"index":4},"end":{"line":2,"column":19,"index":21}},
17 "declarations": [
18 {
19 "type": "VariableDeclarator",
20 "start":10,"end":20,"loc":{"start":{"line":2,"column":8,"index":10},"end":{"line":2,"column":18,"index":20}},
21 "id": {
22 "type": "Identifier",
23 "start":10,"end":15,"loc":{"start":{"line":2,"column":8,"index":10},"end":{"line":2,"column":13,"index":15},"identifierName":"using"},
24 "name": "using"
25 },
26 "init": {
27 "type": "Identifier",
28 "start":18,"end":20,"loc":{"start":{"line":2,"column":16,"index":18},"end":{"line":2,"column":18,"index":20},"identifierName":"of"},
29 "name": "of"
30 }
31 }
32 ],
33 "kind": "using"
34 },
35 {
36 "type": "ForOfStatement",
37 "start":24,"end":48,"loc":{"start":{"line":3,"column":2,"index":24},"end":{"line":3,"column":26,"index":48}},
38 "await": false,
39 "left": {
40 "type": "VariableDeclaration",
41 "start":29,"end":40,"loc":{"start":{"line":3,"column":7,"index":29},"end":{"line":3,"column":18,"index":40}},
42 "declarations": [
43 {
44 "type": "VariableDeclarator",
45 "start":35,"end":40,"loc":{"start":{"line":3,"column":13,"index":35},"end":{"line":3,"column":18,"index":40}},
46 "id": {
47 "type": "Identifier",
48 "start":35,"end":40,"loc":{"start":{"line":3,"column":13,"index":35},"end":{"line":3,"column":18,"index":40},"identifierName":"using"},
49 "name": "using"
50 },
51 "init": null
52 }
53 ],
54 "kind": "using"
55 },
56 "right": {
57 "type": "Identifier",
58 "start":44,"end":46,"loc":{"start":{"line":3,"column":22,"index":44},"end":{"line":3,"column":24,"index":46},"identifierName":"of"},
59 "name": "of"
60 },
61 "body": {
62 "type": "EmptyStatement",
63 "start":47,"end":48,"loc":{"start":{"line":3,"column":25,"index":47},"end":{"line":3,"column":26,"index":48}}
64 }
65 }
66 ],
67 "directives": []
68 }
69 ],
70 "directives": []
71 }
72 }