Debian Codegraph @

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

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