Debian Codegraph @

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

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