Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/json-modules/invalid-default-and-named-imports/output.json

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