Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/json-modules/invalid-named-exports/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": "ExportNamedDeclaration",
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": "ExportSpecifier",
19 "start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14}},
20 "local": {
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 "exported": {
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 "declaration": null,
42 "assertions": [
43 {
44 "type": "ImportAttribute",
45 "start":48,"end":60,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":60,"index":60}},
46 "key": {
47 "type": "Identifier",
48 "start":48,"end":52,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":52,"index":52},"identifierName":"type"},
49 "name": "type"
50 },
51 "value": {
52 "type": "StringLiteral",
53 "start":54,"end":60,"loc":{"start":{"line":1,"column":54,"index":54},"end":{"line":1,"column":60,"index":60}},
54 "extra": {
55 "rawValue": "json",
56 "raw": "\"json\""
57 },
58 "value": "json"
59 }
60 }
61 ]
62 }
63 ],
64 "directives": []
65 }
66 }