Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "errors": [
5 "SyntaxError: Unexpected reserved word 'interface'. (1:0)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
16 "expression": {
17 "type": "ConditionalExpression",
18 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":24,"index":24}},
19 "test": {
20 "type": "Identifier",
21 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9},"identifierName":"interface"},
22 "name": "interface"
23 },
24 "consequent": {
25 "type": "BooleanLiteral",
26 "start":12,"end":16,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":16,"index":16}},
27 "value": true
28 },
29 "alternate": {
30 "type": "BooleanLiteral",
31 "start":19,"end":24,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":24,"index":24}},
32 "value": false
33 }
34 }
35 }
36 ],
37 "directives": []
38 }
39 }