Debian Codegraph @

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

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