Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/modules/import-invalid-keyword-flow/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "errors": [
5 "SyntaxError: Unexpected keyword 'default'. (1:9)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ImportDeclaration",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
16 "specifiers": [
17 {
18 "type": "ImportSpecifier",
19 "start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16}},
20 "imported": {
21 "type": "Identifier",
22 "start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"default"},
23 "name": "default"
24 },
25 "importKind": null,
26 "local": {
27 "type": "Identifier",
28 "start":9,"end":16,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":16,"index":16},"identifierName":"default"},
29 "name": "default"
30 }
31 }
32 ],
33 "importKind": "value",
34 "source": {
35 "type": "StringLiteral",
36 "start":24,"end":29,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":29,"index":29}},
37 "extra": {
38 "rawValue": "foo",
39 "raw": "\"foo\""
40 },
41 "value": "foo"
42 }
43 }
44 ],
45 "directives": []
46 }
47 }