Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":83,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":36,"index":83}},
4 "errors": [
5 "SyntaxError: Binding invalid left-hand side in function parameter list. (2:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":83,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":36,"index":83}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":47,"end":83,"loc":{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":36,"index":83}},
16 "expression": {
17 "type": "ConditionalExpression",
18 "start":47,"end":82,"loc":{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":35,"index":82}},
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":73,"loc":{"start":{"line":2,"column":4,"index":51},"end":{"line":2,"column":26,"index":73}},
27 "predicate": null,
28 "returnType": {
29 "type": "TypeAnnotation",
30 "start":63,"end":66,"loc":{"start":{"line":2,"column":16,"index":63},"end":{"line":2,"column":19,"index":66}},
31 "typeAnnotation": {
32 "type": "GenericTypeAnnotation",
33 "start":65,"end":66,"loc":{"start":{"line":2,"column":18,"index":65},"end":{"line":2,"column":19,"index":66}},
34 "typeParameters": null,
35 "id": {
36 "type": "Identifier",
37 "start":65,"end":66,"loc":{"start":{"line":2,"column":18,"index":65},"end":{"line":2,"column":19,"index":66},"identifierName":"d"},
38 "name": "d"
39 }
40 }
41 },
42 "id": null,
43 "generator": false,
44 "async": false,
45 "params": [
46 {
47 "type": "ArrowFunctionExpression",
48 "start":55,"end":61,"loc":{"start":{"line":2,"column":8,"index":55},"end":{"line":2,"column":14,"index":61}},
49 "id": null,
50 "generator": false,
51 "async": false,
52 "params": [
53 {
54 "type": "Identifier",
55 "start":55,"end":56,"loc":{"start":{"line":2,"column":8,"index":55},"end":{"line":2,"column":9,"index":56},"identifierName":"b"},
56 "name": "b"
57 }
58 ],
59 "body": {
60 "type": "Identifier",
61 "start":60,"end":61,"loc":{"start":{"line":2,"column":13,"index":60},"end":{"line":2,"column":14,"index":61},"identifierName":"c"},
62 "name": "c"
63 }
64 }
65 ],
66 "body": {
67 "type": "Identifier",
68 "start":71,"end":72,"loc":{"start":{"line":2,"column":24,"index":71},"end":{"line":2,"column":25,"index":72},"identifierName":"e"},
69 "name": "e",
70 "extra": {
71 "parenthesized": true,
72 "parenStart": 70
73 }
74 },
75 "typeParameters": {
76 "type": "TypeParameterDeclaration",
77 "start":51,"end":54,"loc":{"start":{"line":2,"column":4,"index":51},"end":{"line":2,"column":7,"index":54}},
78 "params": [
79 {
80 "type": "TypeParameter",
81 "start":52,"end":53,"loc":{"start":{"line":2,"column":5,"index":52},"end":{"line":2,"column":6,"index":53}},
82 "name": "T",
83 "variance": null
84 }
85 ]
86 }
87 },
88 "alternate": {
89 "type": "ArrowFunctionExpression",
90 "start":76,"end":82,"loc":{"start":{"line":2,"column":29,"index":76},"end":{"line":2,"column":35,"index":82}},
91 "id": null,
92 "generator": false,
93 "async": false,
94 "params": [
95 {
96 "type": "Identifier",
97 "start":76,"end":77,"loc":{"start":{"line":2,"column":29,"index":76},"end":{"line":2,"column":30,"index":77},"identifierName":"f"},
98 "name": "f"
99 }
100 ],
101 "body": {
102 "type": "Identifier",
103 "start":81,"end":82,"loc":{"start":{"line":2,"column":34,"index":81},"end":{"line":2,"column":35,"index":82},"identifierName":"g"},
104 "name": "g"
105 }
106 }
107 },
108 "leadingComments": [
109 {
110 "type": "CommentLine",
111 "value": " Invalid LHS parameter after type parameters",
112 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}
113 }
114 ]
115 }
116 ],
117 "directives": []
118 },
119 "comments": [
120 {
121 "type": "CommentLine",
122 "value": " Invalid LHS parameter after type parameters",
123 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}
124 }
125 ]
126 }