@@ -99,3 +99,201 @@ newtype ChildIndex =
99
99
UsingExprExpr ( ) or
100
100
WhileStmtCond ( ) or
101
101
WhileStmtBody ( )
102
+
103
+ string stringOfChildIndex ( ChildIndex i ) {
104
+ i = ArrayExprStmtBlock ( ) and result = "ArrayExprStmtBlock"
105
+ or
106
+ i = ArrayLiteralExpr ( _) and result = "ArrayLiteralExpr"
107
+ or
108
+ i = AssignStmtLeftHandSide ( ) and result = "AssignStmtLeftHandSide"
109
+ or
110
+ i = AssignStmtRightHandSide ( ) and result = "AssignStmtRightHandSide"
111
+ or
112
+ i = AttributeNamedArg ( _) and result = "AttributeNamedArg"
113
+ or
114
+ i = AttributePosArg ( _) and result = "AttributePosArg"
115
+ or
116
+ i = AttributedExprExpr ( ) and result = "AttributedExprExpr"
117
+ or
118
+ i = AttributedExprAttr ( ) and result = "AttributedExprAttr"
119
+ or
120
+ i = BinaryExprLeft ( ) and result = "BinaryExprLeft"
121
+ or
122
+ i = BinaryExprRight ( ) and result = "BinaryExprRight"
123
+ or
124
+ i = CatchClauseBody ( ) and result = "CatchClauseBody"
125
+ or
126
+ i = CatchClauseType ( _) and result = "CatchClauseType"
127
+ or
128
+ i = CmdElement_ ( _) and result = "CmdElement"
129
+ or
130
+ i = CmdCallee ( ) and result = "CmdCallee"
131
+ or
132
+ i = CmdRedirection ( _) and result = "CmdRedirection"
133
+ or
134
+ i = CmdExprExpr ( ) and result = "CmdExprExpr"
135
+ or
136
+ i = ConfigurationName ( ) and result = "ConfigurationName"
137
+ or
138
+ i = ConfigurationBody ( ) and result = "ConfigurationBody"
139
+ or
140
+ i = ConvertExprExpr ( ) and result = "ConvertExprExpr"
141
+ or
142
+ i = ConvertExprType ( ) and result = "ConvertExprType"
143
+ or
144
+ i = ConvertExprAttr ( ) and result = "ConvertExprAttr"
145
+ or
146
+ i = DataStmtBody ( ) and result = "DataStmtBody"
147
+ or
148
+ i = DataStmtCmdAllowed ( _) and result = "DataStmtCmdAllowed"
149
+ or
150
+ i = DoUntilStmtCond ( ) and result = "DoUntilStmtCond"
151
+ or
152
+ i = DoUntilStmtBody ( ) and result = "DoUntilStmtBody"
153
+ or
154
+ i = DoWhileStmtCond ( ) and result = "DoWhileStmtCond"
155
+ or
156
+ i = DoWhileStmtBody ( ) and result = "DoWhileStmtBody"
157
+ or
158
+ i = DynamicStmtName ( ) and result = "DynamicStmtName"
159
+ or
160
+ i = DynamicStmtBody ( ) and result = "DynamicStmtBody"
161
+ or
162
+ i = ExitStmtPipeline ( ) and result = "ExitStmtPipeline"
163
+ or
164
+ i = ExpandableStringExprExpr ( _) and result = "ExpandableStringExprExpr"
165
+ or
166
+ i = ForEachStmtVar ( ) and result = "ForEachStmtVar"
167
+ or
168
+ i = ForEachStmtIter ( ) and result = "ForEachStmtIter"
169
+ or
170
+ i = ForEachStmtBody ( ) and result = "ForEachStmtBody"
171
+ or
172
+ i = ForStmtInit ( ) and result = "ForStmtInit"
173
+ or
174
+ i = ForStmtCond ( ) and result = "ForStmtCond"
175
+ or
176
+ i = ForStmtIter ( ) and result = "ForStmtIter"
177
+ or
178
+ i = ForStmtBody ( ) and result = "ForStmtBody"
179
+ or
180
+ i = FunDefStmtBody ( ) and result = "FunDefStmtBody"
181
+ or
182
+ i = FunDefStmtParam ( _) and result = "FunDefStmtParam"
183
+ or
184
+ i = GotoStmtLabel ( ) and result = "GotoStmtLabel"
185
+ or
186
+ i = HashTableExprKey ( _) and result = "HashTableExprKey"
187
+ or
188
+ i = HashTableExprStmt ( _) and result = "HashTableExprStmt"
189
+ or
190
+ i = IfStmtElse ( ) and result = "IfStmtElse"
191
+ or
192
+ i = IfStmtCond ( _) and result = "IfStmtCond"
193
+ or
194
+ i = IfStmtThen ( _) and result = "IfStmtThen"
195
+ or
196
+ i = IndexExprIndex ( ) and result = "IndexExprIndex"
197
+ or
198
+ i = IndexExprBase ( ) and result = "IndexExprBase"
199
+ or
200
+ i = InvokeMemberExprQual ( ) and result = "InvokeMemberExprQual"
201
+ or
202
+ i = InvokeMemberExprCallee ( ) and result = "InvokeMemberExprCallee"
203
+ or
204
+ i = InvokeMemberExprArg ( _) and result = "InvokeMemberExprArg"
205
+ or
206
+ i = MemberExprQual ( ) and result = "MemberExprQual"
207
+ or
208
+ i = MemberExprMember ( ) and result = "MemberExprMember"
209
+ or
210
+ i = NamedAttributeArgVal ( ) and result = "NamedAttributeArgVal"
211
+ or
212
+ i = MemberAttr ( _) and result = "MemberAttr"
213
+ or
214
+ i = MemberTypeConstraint ( ) and result = "MemberTypeConstraint"
215
+ or
216
+ i = NamedBlockStmt ( _) and result = "NamedBlockStmt"
217
+ or
218
+ i = NamedBlockTrap ( _) and result = "NamedBlockTrap"
219
+ or
220
+ i = ParamBlockAttr ( _) and result = "ParamBlockAttr"
221
+ or
222
+ i = ParamBlockParam ( _) and result = "ParamBlockParam"
223
+ or
224
+ i = ParamAttr ( _) and result = "ParamAttr"
225
+ or
226
+ i = ParamDefaultVal ( ) and result = "ParamDefaultVal"
227
+ or
228
+ i = ParenExprExpr ( ) and result = "ParenExprExpr"
229
+ or
230
+ i = PipelineComp ( _) and result = "PipelineComp"
231
+ or
232
+ i = PipelineChainLeft ( ) and result = "PipelineChainLeft"
233
+ or
234
+ i = PipelineChainRight ( ) and result = "PipelineChainRight"
235
+ or
236
+ i = ReturnStmtPipeline ( ) and result = "ReturnStmtPipeline"
237
+ or
238
+ i = RedirectionExpr ( ) and result = "RedirectionExpr"
239
+ or
240
+ i = ScriptBlockUsing ( _) and result = "ScriptBlockUsing"
241
+ or
242
+ i = ScriptBlockParamBlock ( ) and result = "ScriptBlockParamBlock"
243
+ or
244
+ i = ScriptBlockBeginBlock ( ) and result = "ScriptBlockBeginBlock"
245
+ or
246
+ i = ScriptBlockCleanBlock ( ) and result = "ScriptBlockCleanBlock"
247
+ or
248
+ i = ScriptBlockDynParamBlock ( ) and result = "ScriptBlockDynParamBlock"
249
+ or
250
+ i = ScriptBlockEndBlock ( ) and result = "ScriptBlockEndBlock"
251
+ or
252
+ i = ScriptBlockProcessBlock ( ) and result = "ScriptBlockProcessBlock"
253
+ or
254
+ i = ScriptBlockExprBody ( ) and result = "ScriptBlockExprBody"
255
+ or
256
+ i = StmtBlockStmt ( _) and result = "StmtBlockStmt"
257
+ or
258
+ i = StmtBlockTrapStmt ( _) and result = "StmtBlockTrapStmt"
259
+ or
260
+ i = ExpandableSubExprExpr ( ) and result = "ExpandableSubExprExpr"
261
+ or
262
+ i = SwitchStmtCond ( ) and result = "SwitchStmtCond"
263
+ or
264
+ i = SwitchStmtDefault ( ) and result = "SwitchStmtDefault"
265
+ or
266
+ i = SwitchStmtCase ( _) and result = "SwitchStmtCase"
267
+ or
268
+ i = SwitchStmtPat ( _) and result = "SwitchStmtPat"
269
+ or
270
+ i = CondExprCond ( ) and result = "CondExprCond"
271
+ or
272
+ i = CondExprTrue ( ) and result = "CondExprTrue"
273
+ or
274
+ i = CondExprFalse ( ) and result = "CondExprFalse"
275
+ or
276
+ i = ThrowStmtPipeline ( ) and result = "ThrowStmtPipeline"
277
+ or
278
+ i = TryStmtBody ( ) and result = "TryStmtBody"
279
+ or
280
+ i = TryStmtCatchClause ( _) and result = "TryStmtCatchClause"
281
+ or
282
+ i = TryStmtFinally ( ) and result = "TryStmtFinally"
283
+ or
284
+ i = TypeStmtMember ( _) and result = "TypeStmtMember"
285
+ or
286
+ i = TypeStmtBaseType ( _) and result = "TypeStmtBaseType"
287
+ or
288
+ i = TrapStmtBody ( ) and result = "TrapStmtBody"
289
+ or
290
+ i = TrapStmtTypeConstraint ( ) and result = "TrapStmtTypeConstraint"
291
+ or
292
+ i = UnaryExprOp ( ) and result = "UnaryExprOp"
293
+ or
294
+ i = UsingExprExpr ( ) and result = "UsingExprExpr"
295
+ or
296
+ i = WhileStmtCond ( ) and result = "WhileStmtCond"
297
+ or
298
+ i = WhileStmtBody ( ) and result = "WhileStmtBody"
299
+ }
0 commit comments