Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/module-string-names/mixed/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":139,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":45,"index":139}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":139,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":45,"index":139}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ImportDeclaration",
12 "start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":58,"index":58}},
13 "specifiers": [
14 {
15 "type": "ImportSpecifier",
16 "start":9,"end":21,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":21,"index":21}},
17 "imported": {
18 "type": "StringLiteral",
19 "start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14}},
20 "extra": {
21 "rawValue": "foo",
22 "raw": "\"foo\""
23 },
24 "value": "foo"
25 },
26 "local": {
27 "type": "Identifier",
28 "start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"bar"},
29 "name": "bar"
30 }
31 },
32 {
33 "type": "ImportSpecifier",
34 "start":23,"end":39,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":39,"index":39}},
35 "imported": {
36 "type": "StringLiteral",
37 "start":23,"end":32,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":32,"index":32}},
38 "extra": {
39 "rawValue": "default",
40 "raw": "\"default\""
41 },
42 "value": "default"
43 },
44 "local": {
45 "type": "Identifier",
46 "start":36,"end":39,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":39,"index":39},"identifierName":"qux"},
47 "name": "qux"
48 }
49 }
50 ],
51 "source": {
52 "type": "StringLiteral",
53 "start":47,"end":57,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":57,"index":57}},
54 "extra": {
55 "rawValue": "module-a",
56 "raw": "\"module-a\""
57 },
58 "value": "module-a"
59 }
60 },
61 {
62 "type": "ExportNamedDeclaration",
63 "start":59,"end":93,"loc":{"start":{"line":2,"column":0,"index":59},"end":{"line":2,"column":34,"index":93}},
64 "specifiers": [
65 {
66 "type": "ExportNamespaceSpecifier",
67 "start":66,"end":76,"loc":{"start":{"line":2,"column":7,"index":66},"end":{"line":2,"column":17,"index":76}},
68 "exported": {
69 "type": "StringLiteral",
70 "start":71,"end":76,"loc":{"start":{"line":2,"column":12,"index":71},"end":{"line":2,"column":17,"index":76}},
71 "extra": {
72 "rawValue": "foo",
73 "raw": "\"foo\""
74 },
75 "value": "foo"
76 }
77 }
78 ],
79 "source": {
80 "type": "StringLiteral",
81 "start":82,"end":92,"loc":{"start":{"line":2,"column":23,"index":82},"end":{"line":2,"column":33,"index":92}},
82 "extra": {
83 "rawValue": "module-b",
84 "raw": "\"module-b\""
85 },
86 "value": "module-b"
87 }
88 },
89 {
90 "type": "ExportNamedDeclaration",
91 "start":94,"end":139,"loc":{"start":{"line":3,"column":0,"index":94},"end":{"line":3,"column":45,"index":139}},
92 "specifiers": [
93 {
94 "type": "ExportSpecifier",
95 "start":103,"end":120,"loc":{"start":{"line":3,"column":9,"index":103},"end":{"line":3,"column":26,"index":120}},
96 "local": {
97 "type": "Identifier",
98 "start":103,"end":110,"loc":{"start":{"line":3,"column":9,"index":103},"end":{"line":3,"column":16,"index":110},"identifierName":"default"},
99 "name": "default"
100 },
101 "exported": {
102 "type": "StringLiteral",
103 "start":114,"end":120,"loc":{"start":{"line":3,"column":20,"index":114},"end":{"line":3,"column":26,"index":120}},
104 "extra": {
105 "rawValue": "quux",
106 "raw": "\"quux\""
107 },
108 "value": "quux"
109 }
110 }
111 ],
112 "source": {
113 "type": "StringLiteral",
114 "start":128,"end":138,"loc":{"start":{"line":3,"column":34,"index":128},"end":{"line":3,"column":44,"index":138}},
115 "extra": {
116 "rawValue": "module-b",
117 "raw": "\"module-b\""
118 },
119 "value": "module-b"
120 },
121 "declaration": null
122 }
123 ],
124 "directives": []
125 }
126 }