Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/import-reflection/invalid-default-named-import/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
4 "errors": [
5 "SyntaxError: Only `import module x from \"./module\"` is valid. (1:14)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ImportDeclaration",
15 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}},
16 "specifiers": [
17 {
18 "type": "ImportDefaultSpecifier",
19 "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17}},
20 "local": {
21 "type": "Identifier",
22 "start":14,"end":17,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":17,"index":17},"identifierName":"foo"},
23 "name": "foo"
24 }
25 },
26 {
27 "type": "ImportSpecifier",
28 "start":20,"end":23,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":23,"index":23}},
29 "imported": {
30 "type": "Identifier",
31 "start":20,"end":23,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":23,"index":23},"identifierName":"bar"},
32 "name": "bar"
33 },
34 "local": {
35 "type": "Identifier",
36 "start":20,"end":23,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":23,"index":23},"identifierName":"bar"},
37 "name": "bar"
38 }
39 }
40 ],
41 "module": true,
42 "source": {
43 "type": "StringLiteral",
44 "start":30,"end":45,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":45,"index":45}},
45 "extra": {
46 "rawValue": "./module.wasm",
47 "raw": "\"./module.wasm\""
48 },
49 "value": "./module.wasm"
50 }
51 }
52 ],
53 "directives": []
54 }
55 }