Debian Codegraph @

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

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