Debian Codegraph @

packages/babel-parser/test/fixtures/flow/interfaces-as-identifier/variable/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'interface'. (1:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "VariableDeclaration",
15 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
16 "declarations": [
17 {
18 "type": "VariableDeclarator",
19 "start":6,"end":23,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":23,"index":23}},
20 "id": {
21 "type": "Identifier",
22 "start":6,"end":15,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":15,"index":15},"identifierName":"interface"},
23 "name": "interface"
24 },
25 "init": {
26 "type": "StringLiteral",
27 "start":18,"end":23,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":23,"index":23}},
28 "extra": {
29 "rawValue": "foo",
30 "raw": "\"foo\""
31 },
32 "value": "foo"
33 }
34 }
35 ],
36 "kind": "const"
37 }
38 ],
39 "directives": []
40 }
41 }