Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'interface'. (1:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ClassDeclaration",
15 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
16 "id": {
17 "type": "Identifier",
18 "start":6,"end":15,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":15,"index":15},"identifierName":"interface"},
19 "name": "interface"
20 },
21 "superClass": null,
22 "body": {
23 "type": "ClassBody",
24 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
25 "body": []
26 }
27 }
28 ],
29 "directives": []
30 }
31 }