Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
13 "expression": {
14 "type": "ModuleExpression",
15 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
16 "body": {
17 "type": "Program",
18 "start":8,"end":30,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":3,"column":0,"index":30}},
19 "sourceType": "module",
20 "interpreter": null,
21 "body": [
22 {
23 "type": "VariableDeclaration",
24 "start":11,"end":29,"loc":{"start":{"line":2,"column":2,"index":11},"end":{"line":2,"column":20,"index":29}},
25 "declarations": [
26 {
27 "type": "VariableDeclarator",
28 "start":17,"end":28,"loc":{"start":{"line":2,"column":8,"index":17},"end":{"line":2,"column":19,"index":28}},
29 "id": {
30 "type": "Identifier",
31 "start":17,"end":20,"loc":{"start":{"line":2,"column":8,"index":17},"end":{"line":2,"column":11,"index":20},"identifierName":"foo"},
32 "name": "foo"
33 },
34 "init": {
35 "type": "CallExpression",
36 "start":23,"end":28,"loc":{"start":{"line":2,"column":14,"index":23},"end":{"line":2,"column":19,"index":28}},
37 "callee": {
38 "type": "Identifier",
39 "start":23,"end":26,"loc":{"start":{"line":2,"column":14,"index":23},"end":{"line":2,"column":17,"index":26},"identifierName":"bar"},
40 "name": "bar"
41 },
42 "arguments": []
43 }
44 }
45 ],
46 "kind": "using"
47 }
48 ],
49 "directives": []
50 }
51 }
52 }
53 ],
54 "directives": []
55 }
56 }