Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/module-attributes/invalid-spread-element-import-call/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
4 "errors": [
5 "SyntaxError: `...` is not allowed in `import()`. (1:21)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
16 "expression": {
17 "type": "CallExpression",
18 "start":0,"end":27,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}},
19 "callee": {
20 "type": "Import",
21 "start":0,"end":6,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":6,"index":6}}
22 },
23 "arguments": [
24 {
25 "type": "StringLiteral",
26 "start":7,"end":19,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":19,"index":19}},
27 "extra": {
28 "rawValue": "./foo.json",
29 "raw": "\"./foo.json\""
30 },
31 "value": "./foo.json"
32 },
33 {
34 "type": "SpreadElement",
35 "start":21,"end":26,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":26,"index":26}},
36 "argument": {
37 "type": "ArrayExpression",
38 "start":24,"end":26,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":26,"index":26}},
39 "elements": []
40 }
41 }
42 ]
43 }
44 }
45 ],
46 "directives": []
47 }
48 }