Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/valid-duplicated-variables-in-module-blocks/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":61}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":2,"index":61}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":17,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":17,"index":17}},
17 "id": {
18 "type": "Identifier",
19 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"foo"},
20 "name": "foo"
21 },
22 "init": {
23 "type": "StringLiteral",
24 "start":12,"end":17,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":17,"index":17}},
25 "extra": {
26 "rawValue": "foo",
27 "raw": "\"foo\""
28 },
29 "value": "foo"
30 }
31 }
32 ],
33 "kind": "const"
34 },
35 {
36 "type": "VariableDeclaration",
37 "start":19,"end":61,"loc":{"start":{"line":2,"column":0,"index":19},"end":{"line":4,"column":2,"index":61}},
38 "declarations": [
39 {
40 "type": "VariableDeclarator",
41 "start":25,"end":60,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":4,"column":1,"index":60}},
42 "id": {
43 "type": "Identifier",
44 "start":25,"end":26,"loc":{"start":{"line":2,"column":6,"index":25},"end":{"line":2,"column":7,"index":26},"identifierName":"m"},
45 "name": "m"
46 },
47 "init": {
48 "type": "ModuleExpression",
49 "start":29,"end":60,"loc":{"start":{"line":2,"column":10,"index":29},"end":{"line":4,"column":1,"index":60}},
50 "body": {
51 "type": "Program",
52 "start":37,"end":59,"loc":{"start":{"line":2,"column":18,"index":37},"end":{"line":4,"column":0,"index":59}},
53 "sourceType": "module",
54 "interpreter": null,
55 "body": [
56 {
57 "type": "VariableDeclaration",
58 "start":40,"end":58,"loc":{"start":{"line":3,"column":2,"index":40},"end":{"line":3,"column":20,"index":58}},
59 "declarations": [
60 {
61 "type": "VariableDeclarator",
62 "start":46,"end":57,"loc":{"start":{"line":3,"column":8,"index":46},"end":{"line":3,"column":19,"index":57}},
63 "id": {
64 "type": "Identifier",
65 "start":46,"end":49,"loc":{"start":{"line":3,"column":8,"index":46},"end":{"line":3,"column":11,"index":49},"identifierName":"foo"},
66 "name": "foo"
67 },
68 "init": {
69 "type": "StringLiteral",
70 "start":52,"end":57,"loc":{"start":{"line":3,"column":14,"index":52},"end":{"line":3,"column":19,"index":57}},
71 "extra": {
72 "rawValue": "foo",
73 "raw": "\"foo\""
74 },
75 "value": "foo"
76 }
77 }
78 ],
79 "kind": "const"
80 }
81 ],
82 "directives": []
83 }
84 }
85 }
86 ],
87 "kind": "const"
88 }
89 ],
90 "directives": []
91 }
92 }