Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/dynamic-import/top-level/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":112,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":36,"index":112}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":112,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":36,"index":112}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":21,"index":21}},
13 "expression": {
14 "type": "CallExpression",
15 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
16 "callee": {
17 "type": "Import",
18 "start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}}
19 },
20 "arguments": [
21 {
22 "type": "StringLiteral",
23 "start":7,"end":19,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":19,"index":19}},
24 "extra": {
25 "rawValue": "testing.js",
26 "raw": "'testing.js'"
27 },
28 "value": "testing.js"
29 }
30 ]
31 }
32 },
33 {
34 "type": "VariableDeclaration",
35 "start":23,"end":44,"loc":{"start":{"line":3,"column":0,"index":23},"end":{"line":3,"column":21,"index":44}},
36 "declarations": [
37 {
38 "type": "VariableDeclarator",
39 "start":29,"end":43,"loc":{"start":{"line":3,"column":6,"index":29},"end":{"line":3,"column":20,"index":43}},
40 "id": {
41 "type": "Identifier",
42 "start":29,"end":33,"loc":{"start":{"line":3,"column":6,"index":29},"end":{"line":3,"column":10,"index":33},"identifierName":"test"},
43 "name": "test"
44 },
45 "init": {
46 "type": "StringLiteral",
47 "start":36,"end":43,"loc":{"start":{"line":3,"column":13,"index":36},"end":{"line":3,"column":20,"index":43}},
48 "extra": {
49 "rawValue": "hello",
50 "raw": "'hello'"
51 },
52 "value": "hello"
53 }
54 }
55 ],
56 "kind": "const"
57 },
58 {
59 "type": "ExpressionStatement",
60 "start":45,"end":74,"loc":{"start":{"line":4,"column":0,"index":45},"end":{"line":4,"column":29,"index":74}},
61 "expression": {
62 "type": "CallExpression",
63 "start":45,"end":73,"loc":{"start":{"line":4,"column":0,"index":45},"end":{"line":4,"column":28,"index":73}},
64 "callee": {
65 "type": "Import",
66 "start":45,"end":51,"loc":{"start":{"line":4,"column":0,"index":45},"end":{"line":4,"column":6,"index":51}}
67 },
68 "arguments": [
69 {
70 "type": "TemplateLiteral",
71 "start":52,"end":72,"loc":{"start":{"line":4,"column":7,"index":52},"end":{"line":4,"column":27,"index":72}},
72 "expressions": [
73 {
74 "type": "Identifier",
75 "start":63,"end":67,"loc":{"start":{"line":4,"column":18,"index":63},"end":{"line":4,"column":22,"index":67},"identifierName":"test"},
76 "name": "test"
77 }
78 ],
79 "quasis": [
80 {
81 "type": "TemplateElement",
82 "start":53,"end":61,"loc":{"start":{"line":4,"column":8,"index":53},"end":{"line":4,"column":16,"index":61}},
83 "value": {
84 "raw": "testing/",
85 "cooked": "testing/"
86 },
87 "tail": false
88 },
89 {
90 "type": "TemplateElement",
91 "start":68,"end":71,"loc":{"start":{"line":4,"column":23,"index":68},"end":{"line":4,"column":26,"index":71}},
92 "value": {
93 "raw": ".js",
94 "cooked": ".js"
95 },
96 "tail": true
97 }
98 ]
99 }
100 ]
101 }
102 },
103 {
104 "type": "ExpressionStatement",
105 "start":76,"end":112,"loc":{"start":{"line":6,"column":0,"index":76},"end":{"line":6,"column":36,"index":112}},
106 "expression": {
107 "type": "CallExpression",
108 "start":76,"end":111,"loc":{"start":{"line":6,"column":0,"index":76},"end":{"line":6,"column":35,"index":111}},
109 "callee": {
110 "type": "MemberExpression",
111 "start":76,"end":101,"loc":{"start":{"line":6,"column":0,"index":76},"end":{"line":6,"column":25,"index":101}},
112 "object": {
113 "type": "CallExpression",
114 "start":76,"end":96,"loc":{"start":{"line":6,"column":0,"index":76},"end":{"line":6,"column":20,"index":96}},
115 "callee": {
116 "type": "Import",
117 "start":76,"end":82,"loc":{"start":{"line":6,"column":0,"index":76},"end":{"line":6,"column":6,"index":82}}
118 },
119 "arguments": [
120 {
121 "type": "StringLiteral",
122 "start":83,"end":95,"loc":{"start":{"line":6,"column":7,"index":83},"end":{"line":6,"column":19,"index":95}},
123 "extra": {
124 "rawValue": "testing.js",
125 "raw": "'testing.js'"
126 },
127 "value": "testing.js"
128 }
129 ]
130 },
131 "computed": false,
132 "property": {
133 "type": "Identifier",
134 "start":97,"end":101,"loc":{"start":{"line":6,"column":21,"index":97},"end":{"line":6,"column":25,"index":101},"identifierName":"then"},
135 "name": "then"
136 }
137 },
138 "arguments": [
139 {
140 "type": "ArrowFunctionExpression",
141 "start":102,"end":110,"loc":{"start":{"line":6,"column":26,"index":102},"end":{"line":6,"column":34,"index":110}},
142 "id": null,
143 "generator": false,
144 "async": false,
145 "params": [],
146 "body": {
147 "type": "BlockStatement",
148 "start":108,"end":110,"loc":{"start":{"line":6,"column":32,"index":108},"end":{"line":6,"column":34,"index":110}},
149 "body": [],
150 "directives": []
151 }
152 }
153 ]
154 }
155 }
156 ],
157 "directives": []
158 }
159 }