Debian Codegraph @

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

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