Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/json-modules/invalid-default-and-named-exports/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": "ExportNamedDeclaration",
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": "ExportDefaultSpecifier",
19 "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}},
20 "exported": {
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": "ExportSpecifier",
28 "start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23}},
29 "local": {
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 "exported": {
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 "declaration": null,
51 "assertions": [
52 {
53 "type": "ImportAttribute",
54 "start":57,"end":69,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":69,"index":69}},
55 "key": {
56 "type": "Identifier",
57 "start":57,"end":61,"loc":{"start":{"line":1,"column":57,"index":57},"end":{"line":1,"column":61,"index":61},"identifierName":"type"},
58 "name": "type"
59 },
60 "value": {
61 "type": "StringLiteral",
62 "start":63,"end":69,"loc":{"start":{"line":1,"column":63,"index":63},"end":{"line":1,"column":69,"index":69}},
63 "extra": {
64 "rawValue": "json",
65 "raw": "\"json\""
66 },
67 "value": "json"
68 }
69 }
70 ]
71 }
72 ],
73 "directives": []
74 }
75 }