Debian Codegraph @

packages/babel-parser/test/fixtures/flow/arrows-in-ternaries/issue-58-failing-1/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":24,"index":67}},
4 "errors": [
5 "SyntaxError: Binding invalid left-hand side in function parameter list. (2:11)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":67,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":24,"index":67}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":43,"end":67,"loc":{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":24,"index":67}},
16 "expression": {
17 "type": "ConditionalExpression",
18 "start":43,"end":66,"loc":{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":23,"index":66}},
19 "test": {
20 "type": "Identifier",
21 "start":43,"end":44,"loc":{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":1,"index":44},"identifierName":"a"},
22 "name": "a"
23 },
24 "consequent": {
25 "type": "Identifier",
26 "start":48,"end":49,"loc":{"start":{"line":2,"column":5,"index":48},"end":{"line":2,"column":6,"index":49},"identifierName":"b"},
27 "name": "b",
28 "extra": {
29 "parenthesized": true,
30 "parenStart": 47
31 }
32 },
33 "alternate": {
34 "type": "ArrowFunctionExpression",
35 "start":53,"end":66,"loc":{"start":{"line":2,"column":10,"index":53},"end":{"line":2,"column":23,"index":66}},
36 "id": null,
37 "generator": false,
38 "async": false,
39 "params": [
40 {
41 "type": "ArrowFunctionExpression",
42 "start":54,"end":60,"loc":{"start":{"line":2,"column":11,"index":54},"end":{"line":2,"column":17,"index":60}},
43 "id": null,
44 "generator": false,
45 "async": false,
46 "params": [
47 {
48 "type": "Identifier",
49 "start":54,"end":55,"loc":{"start":{"line":2,"column":11,"index":54},"end":{"line":2,"column":12,"index":55},"identifierName":"c"},
50 "name": "c"
51 }
52 ],
53 "body": {
54 "type": "Identifier",
55 "start":59,"end":60,"loc":{"start":{"line":2,"column":16,"index":59},"end":{"line":2,"column":17,"index":60},"identifierName":"d"},
56 "name": "d"
57 }
58 }
59 ],
60 "body": {
61 "type": "Identifier",
62 "start":65,"end":66,"loc":{"start":{"line":2,"column":22,"index":65},"end":{"line":2,"column":23,"index":66},"identifierName":"e"},
63 "name": "e"
64 }
65 }
66 },
67 "leadingComments": [
68 {
69 "type": "CommentLine",
70 "value": " Function which looks like a return type",
71 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}
72 }
73 ]
74 }
75 ],
76 "directives": []
77 },
78 "comments": [
79 {
80 "type": "CommentLine",
81 "value": " Function which looks like a return type",
82 "start":0,"end":42,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}
83 }
84 ]
85 }