Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-blocks/valid-nested-module-blocks/output.json

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