Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/import-meta/valid-in-module/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":116,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":34,"index":116}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":116,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":34,"index":116}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":6,"end":21,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":21,"index":21}},
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":"x"},
20 "name": "x"
21 },
22 "init": {
23 "type": "MetaProperty",
24 "start":10,"end":21,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":21,"index":21}},
25 "meta": {
26 "type": "Identifier",
27 "start":10,"end":16,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":16,"index":16},"identifierName":"import"},
28 "name": "import"
29 },
30 "property": {
31 "type": "Identifier",
32 "start":17,"end":21,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":21,"index":21},"identifierName":"meta"},
33 "name": "meta"
34 }
35 }
36 }
37 ],
38 "kind": "const"
39 },
40 {
41 "type": "VariableDeclaration",
42 "start":23,"end":51,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":2,"column":28,"index":51}},
43 "declarations": [
44 {
45 "type": "VariableDeclarator",
46 "start":29,"end":50,"loc":{"start":{"line":2,"column":6,"index":29},"end":{"line":2,"column":27,"index":50}},
47 "id": {
48 "type": "Identifier",
49 "start":29,"end":32,"loc":{"start":{"line":2,"column":6,"index":29},"end":{"line":2,"column":9,"index":32},"identifierName":"url"},
50 "name": "url"
51 },
52 "init": {
53 "type": "MemberExpression",
54 "start":35,"end":50,"loc":{"start":{"line":2,"column":12,"index":35},"end":{"line":2,"column":27,"index":50}},
55 "object": {
56 "type": "MetaProperty",
57 "start":35,"end":46,"loc":{"start":{"line":2,"column":12,"index":35},"end":{"line":2,"column":23,"index":46}},
58 "meta": {
59 "type": "Identifier",
60 "start":35,"end":41,"loc":{"start":{"line":2,"column":12,"index":35},"end":{"line":2,"column":18,"index":41},"identifierName":"import"},
61 "name": "import"
62 },
63 "property": {
64 "type": "Identifier",
65 "start":42,"end":46,"loc":{"start":{"line":2,"column":19,"index":42},"end":{"line":2,"column":23,"index":46},"identifierName":"meta"},
66 "name": "meta"
67 }
68 },
69 "computed": false,
70 "property": {
71 "type": "Identifier",
72 "start":47,"end":50,"loc":{"start":{"line":2,"column":24,"index":47},"end":{"line":2,"column":27,"index":50},"identifierName":"url"},
73 "name": "url"
74 }
75 }
76 }
77 ],
78 "kind": "const"
79 },
80 {
81 "type": "ExpressionStatement",
82 "start":52,"end":64,"loc":{"start":{"line":3,"column":0,"index":52},"end":{"line":3,"column":12,"index":64}},
83 "expression": {
84 "type": "MetaProperty",
85 "start":52,"end":63,"loc":{"start":{"line":3,"column":0,"index":52},"end":{"line":3,"column":11,"index":63}},
86 "meta": {
87 "type": "Identifier",
88 "start":52,"end":58,"loc":{"start":{"line":3,"column":0,"index":52},"end":{"line":3,"column":6,"index":58},"identifierName":"import"},
89 "name": "import"
90 },
91 "property": {
92 "type": "Identifier",
93 "start":59,"end":63,"loc":{"start":{"line":3,"column":7,"index":59},"end":{"line":3,"column":11,"index":63},"identifierName":"meta"},
94 "name": "meta"
95 }
96 }
97 },
98 {
99 "type": "ExpressionStatement",
100 "start":65,"end":81,"loc":{"start":{"line":4,"column":0,"index":65},"end":{"line":4,"column":16,"index":81}},
101 "expression": {
102 "type": "MemberExpression",
103 "start":65,"end":80,"loc":{"start":{"line":4,"column":0,"index":65},"end":{"line":4,"column":15,"index":80}},
104 "object": {
105 "type": "MetaProperty",
106 "start":65,"end":76,"loc":{"start":{"line":4,"column":0,"index":65},"end":{"line":4,"column":11,"index":76}},
107 "meta": {
108 "type": "Identifier",
109 "start":65,"end":71,"loc":{"start":{"line":4,"column":0,"index":65},"end":{"line":4,"column":6,"index":71},"identifierName":"import"},
110 "name": "import"
111 },
112 "property": {
113 "type": "Identifier",
114 "start":72,"end":76,"loc":{"start":{"line":4,"column":7,"index":72},"end":{"line":4,"column":11,"index":76},"identifierName":"meta"},
115 "name": "meta"
116 }
117 },
118 "computed": false,
119 "property": {
120 "type": "Identifier",
121 "start":77,"end":80,"loc":{"start":{"line":4,"column":12,"index":77},"end":{"line":4,"column":15,"index":80},"identifierName":"url"},
122 "name": "url"
123 }
124 }
125 },
126 {
127 "type": "ExpressionStatement",
128 "start":82,"end":116,"loc":{"start":{"line":5,"column":0,"index":82},"end":{"line":5,"column":34,"index":116}},
129 "expression": {
130 "type": "AssignmentExpression",
131 "start":82,"end":115,"loc":{"start":{"line":5,"column":0,"index":82},"end":{"line":5,"column":33,"index":115}},
132 "operator": "=",
133 "left": {
134 "type": "MemberExpression",
135 "start":82,"end":108,"loc":{"start":{"line":5,"column":0,"index":82},"end":{"line":5,"column":26,"index":108}},
136 "object": {
137 "type": "MetaProperty",
138 "start":82,"end":93,"loc":{"start":{"line":5,"column":0,"index":82},"end":{"line":5,"column":11,"index":93}},
139 "meta": {
140 "type": "Identifier",
141 "start":82,"end":88,"loc":{"start":{"line":5,"column":0,"index":82},"end":{"line":5,"column":6,"index":88},"identifierName":"import"},
142 "name": "import"
143 },
144 "property": {
145 "type": "Identifier",
146 "start":89,"end":93,"loc":{"start":{"line":5,"column":7,"index":89},"end":{"line":5,"column":11,"index":93},"identifierName":"meta"},
147 "name": "meta"
148 }
149 },
150 "computed": false,
151 "property": {
152 "type": "Identifier",
153 "start":94,"end":108,"loc":{"start":{"line":5,"column":12,"index":94},"end":{"line":5,"column":26,"index":108},"identifierName":"couldBeMutable"},
154 "name": "couldBeMutable"
155 }
156 },
157 "right": {
158 "type": "BooleanLiteral",
159 "start":111,"end":115,"loc":{"start":{"line":5,"column":29,"index":111},"end":{"line":5,"column":33,"index":115}},
160 "value": true
161 }
162 }
163 }
164 ],
165 "directives": []
166 }
167 }