Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-assertions/valid-empty-assertion/output.json

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