Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/explicit-resource-management/valid-using-as-identifier-for-init/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":25,"index":40}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":25,"index":40}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ForStatement",
12 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":25,"index":40}},
13 "init": {
14 "type": "Identifier",
15 "start":8,"end":13,"loc":{"start":{"line":2,"column":2,"index":8},"end":{"line":2,"column":7,"index":13},"identifierName":"using"},
16 "name": "using"
17 },
18 "test": {
19 "type": "AssignmentExpression",
20 "start":17,"end":37,"loc":{"start":{"line":3,"column":2,"index":17},"end":{"line":3,"column":22,"index":37}},
21 "operator": "=",
22 "left": {
23 "type": "Identifier",
24 "start":17,"end":23,"loc":{"start":{"line":3,"column":2,"index":17},"end":{"line":3,"column":8,"index":23},"identifierName":"reader"},
25 "name": "reader"
26 },
27 "right": {
28 "type": "CallExpression",
29 "start":26,"end":37,"loc":{"start":{"line":3,"column":11,"index":26},"end":{"line":3,"column":22,"index":37}},
30 "callee": {
31 "type": "Identifier",
32 "start":26,"end":35,"loc":{"start":{"line":3,"column":11,"index":26},"end":{"line":3,"column":20,"index":35},"identifierName":"getReader"},
33 "name": "getReader"
34 },
35 "arguments": []
36 }
37 },
38 "update": null,
39 "body": {
40 "type": "EmptyStatement",
41 "start":39,"end":40,"loc":{"start":{"line":3,"column":24,"index":39},"end":{"line":3,"column":25,"index":40}}
42 }
43 }
44 ],
45 "directives": []
46 }
47 }