Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/json-modules/valid-default-and-namespace-imports/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
7 "sourceType": "module",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ImportDeclaration",
12 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
13 "specifiers": [
14 {
15 "type": "ImportDefaultSpecifier",
16 "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}},
17 "local": {
18 "type": "Identifier",
19 "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14},"identifierName":"fixture"},
20 "name": "fixture"
21 }
22 },
23 {
24 "type": "ImportNamespaceSpecifier",
25 "start":16,"end":23,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":23,"index":23}},
26 "local": {
27 "type": "Identifier",
28 "start":21,"end":23,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":23,"index":23},"identifierName":"ns"},
29 "name": "ns"
30 }
31 }
32 ],
33 "source": {
34 "type": "StringLiteral",
35 "start":29,"end":45,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":45,"index":45}},
36 "extra": {
37 "rawValue": "./fixture.json",
38 "raw": "\"./fixture.json\""
39 },
40 "value": "./fixture.json"
41 },
42 "assertions": [
43 {
44 "type": "ImportAttribute",
45 "start":55,"end":67,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":67,"index":67}},
46 "key": {
47 "type": "Identifier",
48 "start":55,"end":59,"loc":{"start":{"line":1,"column":55,"index":55},"end":{"line":1,"column":59,"index":59},"identifierName":"type"},
49 "name": "type"
50 },
51 "value": {
52 "type": "StringLiteral",
53 "start":61,"end":67,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":67,"index":67}},
54 "extra": {
55 "rawValue": "json",
56 "raw": "\"json\""
57 },
58 "value": "json"
59 }
60 }
61 ]
62 }
63 ],
64 "directives": []
65 }
66 }