Debian Codegraph @

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

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