/src/cel-rust/cel/src/parser/gen/celvisitor.rs
Line | Count | Source |
1 | | #![allow(nonstandard_style)] |
2 | | // Generated from CEL.g4 by ANTLR 4.13.2 |
3 | | use super::celparser::*; |
4 | | use antlr4rust::tree::{ParseTreeVisitor, ParseTreeVisitorCompat}; |
5 | | |
6 | | /** |
7 | | * This interface defines a complete generic visitor for a parse tree produced |
8 | | * by {@link CELParser}. |
9 | | */ |
10 | | pub trait CELVisitor<'input>: ParseTreeVisitor<'input, CELParserContextType> { |
11 | | /** |
12 | | * Visit a parse tree produced by {@link CELParser#start}. |
13 | | * @param ctx the parse tree |
14 | | */ |
15 | | fn visit_start(&mut self, ctx: &StartContext<'input>) { |
16 | | self.visit_children(ctx) |
17 | | } |
18 | | |
19 | | /** |
20 | | * Visit a parse tree produced by {@link CELParser#expr}. |
21 | | * @param ctx the parse tree |
22 | | */ |
23 | | fn visit_expr(&mut self, ctx: &ExprContext<'input>) { |
24 | | self.visit_children(ctx) |
25 | | } |
26 | | |
27 | | /** |
28 | | * Visit a parse tree produced by {@link CELParser#conditionalOr}. |
29 | | * @param ctx the parse tree |
30 | | */ |
31 | | fn visit_conditionalOr(&mut self, ctx: &ConditionalOrContext<'input>) { |
32 | | self.visit_children(ctx) |
33 | | } |
34 | | |
35 | | /** |
36 | | * Visit a parse tree produced by {@link CELParser#conditionalAnd}. |
37 | | * @param ctx the parse tree |
38 | | */ |
39 | | fn visit_conditionalAnd(&mut self, ctx: &ConditionalAndContext<'input>) { |
40 | | self.visit_children(ctx) |
41 | | } |
42 | | |
43 | | /** |
44 | | * Visit a parse tree produced by {@link CELParser#relation}. |
45 | | * @param ctx the parse tree |
46 | | */ |
47 | | fn visit_relation(&mut self, ctx: &RelationContext<'input>) { |
48 | | self.visit_children(ctx) |
49 | | } |
50 | | |
51 | | /** |
52 | | * Visit a parse tree produced by {@link CELParser#calc}. |
53 | | * @param ctx the parse tree |
54 | | */ |
55 | | fn visit_calc(&mut self, ctx: &CalcContext<'input>) { |
56 | | self.visit_children(ctx) |
57 | | } |
58 | | |
59 | | /** |
60 | | * Visit a parse tree produced by the {@code MemberExpr} |
61 | | * labeled alternative in {@link CELParser#unary}. |
62 | | * @param ctx the parse tree |
63 | | */ |
64 | | fn visit_MemberExpr(&mut self, ctx: &MemberExprContext<'input>) { |
65 | | self.visit_children(ctx) |
66 | | } |
67 | | |
68 | | /** |
69 | | * Visit a parse tree produced by the {@code LogicalNot} |
70 | | * labeled alternative in {@link CELParser#unary}. |
71 | | * @param ctx the parse tree |
72 | | */ |
73 | | fn visit_LogicalNot(&mut self, ctx: &LogicalNotContext<'input>) { |
74 | | self.visit_children(ctx) |
75 | | } |
76 | | |
77 | | /** |
78 | | * Visit a parse tree produced by the {@code Negate} |
79 | | * labeled alternative in {@link CELParser#unary}. |
80 | | * @param ctx the parse tree |
81 | | */ |
82 | | fn visit_Negate(&mut self, ctx: &NegateContext<'input>) { |
83 | | self.visit_children(ctx) |
84 | | } |
85 | | |
86 | | /** |
87 | | * Visit a parse tree produced by the {@code MemberCall} |
88 | | * labeled alternative in {@link CELParser#member}. |
89 | | * @param ctx the parse tree |
90 | | */ |
91 | | fn visit_MemberCall(&mut self, ctx: &MemberCallContext<'input>) { |
92 | | self.visit_children(ctx) |
93 | | } |
94 | | |
95 | | /** |
96 | | * Visit a parse tree produced by the {@code Select} |
97 | | * labeled alternative in {@link CELParser#member}. |
98 | | * @param ctx the parse tree |
99 | | */ |
100 | | fn visit_Select(&mut self, ctx: &SelectContext<'input>) { |
101 | | self.visit_children(ctx) |
102 | | } |
103 | | |
104 | | /** |
105 | | * Visit a parse tree produced by the {@code PrimaryExpr} |
106 | | * labeled alternative in {@link CELParser#member}. |
107 | | * @param ctx the parse tree |
108 | | */ |
109 | | fn visit_PrimaryExpr(&mut self, ctx: &PrimaryExprContext<'input>) { |
110 | | self.visit_children(ctx) |
111 | | } |
112 | | |
113 | | /** |
114 | | * Visit a parse tree produced by the {@code Index} |
115 | | * labeled alternative in {@link CELParser#member}. |
116 | | * @param ctx the parse tree |
117 | | */ |
118 | | fn visit_Index(&mut self, ctx: &IndexContext<'input>) { |
119 | | self.visit_children(ctx) |
120 | | } |
121 | | |
122 | | /** |
123 | | * Visit a parse tree produced by the {@code Ident} |
124 | | * labeled alternative in {@link CELParser#primary}. |
125 | | * @param ctx the parse tree |
126 | | */ |
127 | | fn visit_Ident(&mut self, ctx: &IdentContext<'input>) { |
128 | | self.visit_children(ctx) |
129 | | } |
130 | | |
131 | | /** |
132 | | * Visit a parse tree produced by the {@code GlobalCall} |
133 | | * labeled alternative in {@link CELParser#primary}. |
134 | | * @param ctx the parse tree |
135 | | */ |
136 | | fn visit_GlobalCall(&mut self, ctx: &GlobalCallContext<'input>) { |
137 | | self.visit_children(ctx) |
138 | | } |
139 | | |
140 | | /** |
141 | | * Visit a parse tree produced by the {@code Nested} |
142 | | * labeled alternative in {@link CELParser#primary}. |
143 | | * @param ctx the parse tree |
144 | | */ |
145 | | fn visit_Nested(&mut self, ctx: &NestedContext<'input>) { |
146 | | self.visit_children(ctx) |
147 | | } |
148 | | |
149 | | /** |
150 | | * Visit a parse tree produced by the {@code CreateList} |
151 | | * labeled alternative in {@link CELParser#primary}. |
152 | | * @param ctx the parse tree |
153 | | */ |
154 | | fn visit_CreateList(&mut self, ctx: &CreateListContext<'input>) { |
155 | | self.visit_children(ctx) |
156 | | } |
157 | | |
158 | | /** |
159 | | * Visit a parse tree produced by the {@code CreateStruct} |
160 | | * labeled alternative in {@link CELParser#primary}. |
161 | | * @param ctx the parse tree |
162 | | */ |
163 | | fn visit_CreateStruct(&mut self, ctx: &CreateStructContext<'input>) { |
164 | | self.visit_children(ctx) |
165 | | } |
166 | | |
167 | | /** |
168 | | * Visit a parse tree produced by the {@code CreateMessage} |
169 | | * labeled alternative in {@link CELParser#primary}. |
170 | | * @param ctx the parse tree |
171 | | */ |
172 | | fn visit_CreateMessage(&mut self, ctx: &CreateMessageContext<'input>) { |
173 | | self.visit_children(ctx) |
174 | | } |
175 | | |
176 | | /** |
177 | | * Visit a parse tree produced by the {@code ConstantLiteral} |
178 | | * labeled alternative in {@link CELParser#primary}. |
179 | | * @param ctx the parse tree |
180 | | */ |
181 | | fn visit_ConstantLiteral(&mut self, ctx: &ConstantLiteralContext<'input>) { |
182 | | self.visit_children(ctx) |
183 | | } |
184 | | |
185 | | /** |
186 | | * Visit a parse tree produced by {@link CELParser#exprList}. |
187 | | * @param ctx the parse tree |
188 | | */ |
189 | | fn visit_exprList(&mut self, ctx: &ExprListContext<'input>) { |
190 | | self.visit_children(ctx) |
191 | | } |
192 | | |
193 | | /** |
194 | | * Visit a parse tree produced by {@link CELParser#listInit}. |
195 | | * @param ctx the parse tree |
196 | | */ |
197 | | fn visit_listInit(&mut self, ctx: &ListInitContext<'input>) { |
198 | | self.visit_children(ctx) |
199 | | } |
200 | | |
201 | | /** |
202 | | * Visit a parse tree produced by {@link CELParser#field_initializer_list}. |
203 | | * @param ctx the parse tree |
204 | | */ |
205 | | fn visit_field_initializer_list(&mut self, ctx: &Field_initializer_listContext<'input>) { |
206 | | self.visit_children(ctx) |
207 | | } |
208 | | |
209 | | /** |
210 | | * Visit a parse tree produced by {@link CELParser#optField}. |
211 | | * @param ctx the parse tree |
212 | | */ |
213 | | fn visit_optField(&mut self, ctx: &OptFieldContext<'input>) { |
214 | | self.visit_children(ctx) |
215 | | } |
216 | | |
217 | | /** |
218 | | * Visit a parse tree produced by {@link CELParser#mapInitializerList}. |
219 | | * @param ctx the parse tree |
220 | | */ |
221 | | fn visit_mapInitializerList(&mut self, ctx: &MapInitializerListContext<'input>) { |
222 | | self.visit_children(ctx) |
223 | | } |
224 | | |
225 | | /** |
226 | | * Visit a parse tree produced by the {@code SimpleIdentifier} |
227 | | * labeled alternative in {@link CELParser#escapeIdent}. |
228 | | * @param ctx the parse tree |
229 | | */ |
230 | | fn visit_SimpleIdentifier(&mut self, ctx: &SimpleIdentifierContext<'input>) { |
231 | | self.visit_children(ctx) |
232 | | } |
233 | | |
234 | | /** |
235 | | * Visit a parse tree produced by the {@code EscapedIdentifier} |
236 | | * labeled alternative in {@link CELParser#escapeIdent}. |
237 | | * @param ctx the parse tree |
238 | | */ |
239 | | fn visit_EscapedIdentifier(&mut self, ctx: &EscapedIdentifierContext<'input>) { |
240 | | self.visit_children(ctx) |
241 | | } |
242 | | |
243 | | /** |
244 | | * Visit a parse tree produced by {@link CELParser#optExpr}. |
245 | | * @param ctx the parse tree |
246 | | */ |
247 | | fn visit_optExpr(&mut self, ctx: &OptExprContext<'input>) { |
248 | | self.visit_children(ctx) |
249 | | } |
250 | | |
251 | | /** |
252 | | * Visit a parse tree produced by the {@code Int} |
253 | | * labeled alternative in {@link CELParser#literal}. |
254 | | * @param ctx the parse tree |
255 | | */ |
256 | | fn visit_Int(&mut self, ctx: &IntContext<'input>) { |
257 | | self.visit_children(ctx) |
258 | | } |
259 | | |
260 | | /** |
261 | | * Visit a parse tree produced by the {@code Uint} |
262 | | * labeled alternative in {@link CELParser#literal}. |
263 | | * @param ctx the parse tree |
264 | | */ |
265 | | fn visit_Uint(&mut self, ctx: &UintContext<'input>) { |
266 | | self.visit_children(ctx) |
267 | | } |
268 | | |
269 | | /** |
270 | | * Visit a parse tree produced by the {@code Double} |
271 | | * labeled alternative in {@link CELParser#literal}. |
272 | | * @param ctx the parse tree |
273 | | */ |
274 | | fn visit_Double(&mut self, ctx: &DoubleContext<'input>) { |
275 | | self.visit_children(ctx) |
276 | | } |
277 | | |
278 | | /** |
279 | | * Visit a parse tree produced by the {@code String} |
280 | | * labeled alternative in {@link CELParser#literal}. |
281 | | * @param ctx the parse tree |
282 | | */ |
283 | | fn visit_String(&mut self, ctx: &StringContext<'input>) { |
284 | | self.visit_children(ctx) |
285 | | } |
286 | | |
287 | | /** |
288 | | * Visit a parse tree produced by the {@code Bytes} |
289 | | * labeled alternative in {@link CELParser#literal}. |
290 | | * @param ctx the parse tree |
291 | | */ |
292 | | fn visit_Bytes(&mut self, ctx: &BytesContext<'input>) { |
293 | | self.visit_children(ctx) |
294 | | } |
295 | | |
296 | | /** |
297 | | * Visit a parse tree produced by the {@code BoolTrue} |
298 | | * labeled alternative in {@link CELParser#literal}. |
299 | | * @param ctx the parse tree |
300 | | */ |
301 | | fn visit_BoolTrue(&mut self, ctx: &BoolTrueContext<'input>) { |
302 | | self.visit_children(ctx) |
303 | | } |
304 | | |
305 | | /** |
306 | | * Visit a parse tree produced by the {@code BoolFalse} |
307 | | * labeled alternative in {@link CELParser#literal}. |
308 | | * @param ctx the parse tree |
309 | | */ |
310 | | fn visit_BoolFalse(&mut self, ctx: &BoolFalseContext<'input>) { |
311 | | self.visit_children(ctx) |
312 | | } |
313 | | |
314 | | /** |
315 | | * Visit a parse tree produced by the {@code Null} |
316 | | * labeled alternative in {@link CELParser#literal}. |
317 | | * @param ctx the parse tree |
318 | | */ |
319 | | fn visit_Null(&mut self, ctx: &NullContext<'input>) { |
320 | | self.visit_children(ctx) |
321 | | } |
322 | | } |
323 | | |
324 | | pub trait CELVisitorCompat<'input>: |
325 | | ParseTreeVisitorCompat<'input, Node = CELParserContextType> |
326 | | { |
327 | | /** |
328 | | * Visit a parse tree produced by {@link CELParser#start}. |
329 | | * @param ctx the parse tree |
330 | | */ |
331 | | fn visit_start(&mut self, ctx: &StartContext<'input>) -> Self::Return { |
332 | | self.visit_children(ctx) |
333 | | } |
334 | | |
335 | | /** |
336 | | * Visit a parse tree produced by {@link CELParser#expr}. |
337 | | * @param ctx the parse tree |
338 | | */ |
339 | | fn visit_expr(&mut self, ctx: &ExprContext<'input>) -> Self::Return { |
340 | | self.visit_children(ctx) |
341 | | } |
342 | | |
343 | | /** |
344 | | * Visit a parse tree produced by {@link CELParser#conditionalOr}. |
345 | | * @param ctx the parse tree |
346 | | */ |
347 | | fn visit_conditionalOr(&mut self, ctx: &ConditionalOrContext<'input>) -> Self::Return { |
348 | | self.visit_children(ctx) |
349 | | } |
350 | | |
351 | | /** |
352 | | * Visit a parse tree produced by {@link CELParser#conditionalAnd}. |
353 | | * @param ctx the parse tree |
354 | | */ |
355 | | fn visit_conditionalAnd(&mut self, ctx: &ConditionalAndContext<'input>) -> Self::Return { |
356 | | self.visit_children(ctx) |
357 | | } |
358 | | |
359 | | /** |
360 | | * Visit a parse tree produced by {@link CELParser#relation}. |
361 | | * @param ctx the parse tree |
362 | | */ |
363 | | fn visit_relation(&mut self, ctx: &RelationContext<'input>) -> Self::Return { |
364 | | self.visit_children(ctx) |
365 | | } |
366 | | |
367 | | /** |
368 | | * Visit a parse tree produced by {@link CELParser#calc}. |
369 | | * @param ctx the parse tree |
370 | | */ |
371 | | fn visit_calc(&mut self, ctx: &CalcContext<'input>) -> Self::Return { |
372 | | self.visit_children(ctx) |
373 | | } |
374 | | |
375 | | /** |
376 | | * Visit a parse tree produced by the {@code MemberExpr} |
377 | | * labeled alternative in {@link CELParser#unary}. |
378 | | * @param ctx the parse tree |
379 | | */ |
380 | | fn visit_MemberExpr(&mut self, ctx: &MemberExprContext<'input>) -> Self::Return { |
381 | | self.visit_children(ctx) |
382 | | } |
383 | | |
384 | | /** |
385 | | * Visit a parse tree produced by the {@code LogicalNot} |
386 | | * labeled alternative in {@link CELParser#unary}. |
387 | | * @param ctx the parse tree |
388 | | */ |
389 | | fn visit_LogicalNot(&mut self, ctx: &LogicalNotContext<'input>) -> Self::Return { |
390 | | self.visit_children(ctx) |
391 | | } |
392 | | |
393 | | /** |
394 | | * Visit a parse tree produced by the {@code Negate} |
395 | | * labeled alternative in {@link CELParser#unary}. |
396 | | * @param ctx the parse tree |
397 | | */ |
398 | | fn visit_Negate(&mut self, ctx: &NegateContext<'input>) -> Self::Return { |
399 | | self.visit_children(ctx) |
400 | | } |
401 | | |
402 | | /** |
403 | | * Visit a parse tree produced by the {@code MemberCall} |
404 | | * labeled alternative in {@link CELParser#member}. |
405 | | * @param ctx the parse tree |
406 | | */ |
407 | | fn visit_MemberCall(&mut self, ctx: &MemberCallContext<'input>) -> Self::Return { |
408 | | self.visit_children(ctx) |
409 | | } |
410 | | |
411 | | /** |
412 | | * Visit a parse tree produced by the {@code Select} |
413 | | * labeled alternative in {@link CELParser#member}. |
414 | | * @param ctx the parse tree |
415 | | */ |
416 | | fn visit_Select(&mut self, ctx: &SelectContext<'input>) -> Self::Return { |
417 | | self.visit_children(ctx) |
418 | | } |
419 | | |
420 | | /** |
421 | | * Visit a parse tree produced by the {@code PrimaryExpr} |
422 | | * labeled alternative in {@link CELParser#member}. |
423 | | * @param ctx the parse tree |
424 | | */ |
425 | | fn visit_PrimaryExpr(&mut self, ctx: &PrimaryExprContext<'input>) -> Self::Return { |
426 | | self.visit_children(ctx) |
427 | | } |
428 | | |
429 | | /** |
430 | | * Visit a parse tree produced by the {@code Index} |
431 | | * labeled alternative in {@link CELParser#member}. |
432 | | * @param ctx the parse tree |
433 | | */ |
434 | | fn visit_Index(&mut self, ctx: &IndexContext<'input>) -> Self::Return { |
435 | | self.visit_children(ctx) |
436 | | } |
437 | | |
438 | | /** |
439 | | * Visit a parse tree produced by the {@code Ident} |
440 | | * labeled alternative in {@link CELParser#primary}. |
441 | | * @param ctx the parse tree |
442 | | */ |
443 | | fn visit_Ident(&mut self, ctx: &IdentContext<'input>) -> Self::Return { |
444 | | self.visit_children(ctx) |
445 | | } |
446 | | |
447 | | /** |
448 | | * Visit a parse tree produced by the {@code GlobalCall} |
449 | | * labeled alternative in {@link CELParser#primary}. |
450 | | * @param ctx the parse tree |
451 | | */ |
452 | | fn visit_GlobalCall(&mut self, ctx: &GlobalCallContext<'input>) -> Self::Return { |
453 | | self.visit_children(ctx) |
454 | | } |
455 | | |
456 | | /** |
457 | | * Visit a parse tree produced by the {@code Nested} |
458 | | * labeled alternative in {@link CELParser#primary}. |
459 | | * @param ctx the parse tree |
460 | | */ |
461 | | fn visit_Nested(&mut self, ctx: &NestedContext<'input>) -> Self::Return { |
462 | | self.visit_children(ctx) |
463 | | } |
464 | | |
465 | | /** |
466 | | * Visit a parse tree produced by the {@code CreateList} |
467 | | * labeled alternative in {@link CELParser#primary}. |
468 | | * @param ctx the parse tree |
469 | | */ |
470 | | fn visit_CreateList(&mut self, ctx: &CreateListContext<'input>) -> Self::Return { |
471 | | self.visit_children(ctx) |
472 | | } |
473 | | |
474 | | /** |
475 | | * Visit a parse tree produced by the {@code CreateStruct} |
476 | | * labeled alternative in {@link CELParser#primary}. |
477 | | * @param ctx the parse tree |
478 | | */ |
479 | | fn visit_CreateStruct(&mut self, ctx: &CreateStructContext<'input>) -> Self::Return { |
480 | | self.visit_children(ctx) |
481 | | } |
482 | | |
483 | | /** |
484 | | * Visit a parse tree produced by the {@code CreateMessage} |
485 | | * labeled alternative in {@link CELParser#primary}. |
486 | | * @param ctx the parse tree |
487 | | */ |
488 | | fn visit_CreateMessage(&mut self, ctx: &CreateMessageContext<'input>) -> Self::Return { |
489 | | self.visit_children(ctx) |
490 | | } |
491 | | |
492 | | /** |
493 | | * Visit a parse tree produced by the {@code ConstantLiteral} |
494 | | * labeled alternative in {@link CELParser#primary}. |
495 | | * @param ctx the parse tree |
496 | | */ |
497 | | fn visit_ConstantLiteral(&mut self, ctx: &ConstantLiteralContext<'input>) -> Self::Return { |
498 | | self.visit_children(ctx) |
499 | | } |
500 | | |
501 | | /** |
502 | | * Visit a parse tree produced by {@link CELParser#exprList}. |
503 | | * @param ctx the parse tree |
504 | | */ |
505 | 0 | fn visit_exprList(&mut self, ctx: &ExprListContext<'input>) -> Self::Return { |
506 | 0 | self.visit_children(ctx) |
507 | 0 | } |
508 | | |
509 | | /** |
510 | | * Visit a parse tree produced by {@link CELParser#listInit}. |
511 | | * @param ctx the parse tree |
512 | | */ |
513 | 0 | fn visit_listInit(&mut self, ctx: &ListInitContext<'input>) -> Self::Return { |
514 | 0 | self.visit_children(ctx) |
515 | 0 | } |
516 | | |
517 | | /** |
518 | | * Visit a parse tree produced by {@link CELParser#field_initializer_list}. |
519 | | * @param ctx the parse tree |
520 | | */ |
521 | 0 | fn visit_field_initializer_list( |
522 | 0 | &mut self, |
523 | 0 | ctx: &Field_initializer_listContext<'input>, |
524 | 0 | ) -> Self::Return { |
525 | 0 | self.visit_children(ctx) |
526 | 0 | } |
527 | | |
528 | | /** |
529 | | * Visit a parse tree produced by {@link CELParser#optField}. |
530 | | * @param ctx the parse tree |
531 | | */ |
532 | 0 | fn visit_optField(&mut self, ctx: &OptFieldContext<'input>) -> Self::Return { |
533 | 0 | self.visit_children(ctx) |
534 | 0 | } |
535 | | |
536 | | /** |
537 | | * Visit a parse tree produced by {@link CELParser#mapInitializerList}. |
538 | | * @param ctx the parse tree |
539 | | */ |
540 | 0 | fn visit_mapInitializerList( |
541 | 0 | &mut self, |
542 | 0 | ctx: &MapInitializerListContext<'input>, |
543 | 0 | ) -> Self::Return { |
544 | 0 | self.visit_children(ctx) |
545 | 0 | } |
546 | | |
547 | | /** |
548 | | * Visit a parse tree produced by the {@code SimpleIdentifier} |
549 | | * labeled alternative in {@link CELParser#escapeIdent}. |
550 | | * @param ctx the parse tree |
551 | | */ |
552 | 0 | fn visit_SimpleIdentifier(&mut self, ctx: &SimpleIdentifierContext<'input>) -> Self::Return { |
553 | 0 | self.visit_children(ctx) |
554 | 0 | } |
555 | | |
556 | | /** |
557 | | * Visit a parse tree produced by the {@code EscapedIdentifier} |
558 | | * labeled alternative in {@link CELParser#escapeIdent}. |
559 | | * @param ctx the parse tree |
560 | | */ |
561 | 0 | fn visit_EscapedIdentifier(&mut self, ctx: &EscapedIdentifierContext<'input>) -> Self::Return { |
562 | 0 | self.visit_children(ctx) |
563 | 0 | } |
564 | | |
565 | | /** |
566 | | * Visit a parse tree produced by {@link CELParser#optExpr}. |
567 | | * @param ctx the parse tree |
568 | | */ |
569 | 57.7k | fn visit_optExpr(&mut self, ctx: &OptExprContext<'input>) -> Self::Return { |
570 | 57.7k | self.visit_children(ctx) |
571 | 57.7k | } |
572 | | |
573 | | /** |
574 | | * Visit a parse tree produced by the {@code Int} |
575 | | * labeled alternative in {@link CELParser#literal}. |
576 | | * @param ctx the parse tree |
577 | | */ |
578 | | fn visit_Int(&mut self, ctx: &IntContext<'input>) -> Self::Return { |
579 | | self.visit_children(ctx) |
580 | | } |
581 | | |
582 | | /** |
583 | | * Visit a parse tree produced by the {@code Uint} |
584 | | * labeled alternative in {@link CELParser#literal}. |
585 | | * @param ctx the parse tree |
586 | | */ |
587 | | fn visit_Uint(&mut self, ctx: &UintContext<'input>) -> Self::Return { |
588 | | self.visit_children(ctx) |
589 | | } |
590 | | |
591 | | /** |
592 | | * Visit a parse tree produced by the {@code Double} |
593 | | * labeled alternative in {@link CELParser#literal}. |
594 | | * @param ctx the parse tree |
595 | | */ |
596 | | fn visit_Double(&mut self, ctx: &DoubleContext<'input>) -> Self::Return { |
597 | | self.visit_children(ctx) |
598 | | } |
599 | | |
600 | | /** |
601 | | * Visit a parse tree produced by the {@code String} |
602 | | * labeled alternative in {@link CELParser#literal}. |
603 | | * @param ctx the parse tree |
604 | | */ |
605 | | fn visit_String(&mut self, ctx: &StringContext<'input>) -> Self::Return { |
606 | | self.visit_children(ctx) |
607 | | } |
608 | | |
609 | | /** |
610 | | * Visit a parse tree produced by the {@code Bytes} |
611 | | * labeled alternative in {@link CELParser#literal}. |
612 | | * @param ctx the parse tree |
613 | | */ |
614 | | fn visit_Bytes(&mut self, ctx: &BytesContext<'input>) -> Self::Return { |
615 | | self.visit_children(ctx) |
616 | | } |
617 | | |
618 | | /** |
619 | | * Visit a parse tree produced by the {@code BoolTrue} |
620 | | * labeled alternative in {@link CELParser#literal}. |
621 | | * @param ctx the parse tree |
622 | | */ |
623 | | fn visit_BoolTrue(&mut self, ctx: &BoolTrueContext<'input>) -> Self::Return { |
624 | | self.visit_children(ctx) |
625 | | } |
626 | | |
627 | | /** |
628 | | * Visit a parse tree produced by the {@code BoolFalse} |
629 | | * labeled alternative in {@link CELParser#literal}. |
630 | | * @param ctx the parse tree |
631 | | */ |
632 | | fn visit_BoolFalse(&mut self, ctx: &BoolFalseContext<'input>) -> Self::Return { |
633 | | self.visit_children(ctx) |
634 | | } |
635 | | |
636 | | /** |
637 | | * Visit a parse tree produced by the {@code Null} |
638 | | * labeled alternative in {@link CELParser#literal}. |
639 | | * @param ctx the parse tree |
640 | | */ |
641 | | fn visit_Null(&mut self, ctx: &NullContext<'input>) -> Self::Return { |
642 | | self.visit_children(ctx) |
643 | | } |
644 | | } |
645 | | |
646 | | impl<'input, T> CELVisitor<'input> for T |
647 | | where |
648 | | T: CELVisitorCompat<'input>, |
649 | | { |
650 | 14.8k | fn visit_start(&mut self, ctx: &StartContext<'input>) { |
651 | 14.8k | let result = <Self as CELVisitorCompat>::visit_start(self, ctx); |
652 | 14.8k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
653 | 14.8k | } |
654 | | |
655 | 504k | fn visit_expr(&mut self, ctx: &ExprContext<'input>) { |
656 | 504k | let result = <Self as CELVisitorCompat>::visit_expr(self, ctx); |
657 | 504k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
658 | 504k | } |
659 | | |
660 | 504k | fn visit_conditionalOr(&mut self, ctx: &ConditionalOrContext<'input>) { |
661 | 504k | let result = <Self as CELVisitorCompat>::visit_conditionalOr(self, ctx); |
662 | 504k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
663 | 504k | } |
664 | | |
665 | 694k | fn visit_conditionalAnd(&mut self, ctx: &ConditionalAndContext<'input>) { |
666 | 694k | let result = <Self as CELVisitorCompat>::visit_conditionalAnd(self, ctx); |
667 | 694k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
668 | 694k | } |
669 | | |
670 | 904k | fn visit_relation(&mut self, ctx: &RelationContext<'input>) { |
671 | 904k | let result = <Self as CELVisitorCompat>::visit_relation(self, ctx); |
672 | 904k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
673 | 904k | } |
674 | | |
675 | 2.55M | fn visit_calc(&mut self, ctx: &CalcContext<'input>) { |
676 | 2.55M | let result = <Self as CELVisitorCompat>::visit_calc(self, ctx); |
677 | 2.55M | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
678 | 2.55M | } |
679 | | |
680 | 1.59M | fn visit_MemberExpr(&mut self, ctx: &MemberExprContext<'input>) { |
681 | 1.59M | let result = <Self as CELVisitorCompat>::visit_MemberExpr(self, ctx); |
682 | 1.59M | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
683 | 1.59M | } |
684 | | |
685 | 14.9k | fn visit_LogicalNot(&mut self, ctx: &LogicalNotContext<'input>) { |
686 | 14.9k | let result = <Self as CELVisitorCompat>::visit_LogicalNot(self, ctx); |
687 | 14.9k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
688 | 14.9k | } |
689 | | |
690 | 64.4k | fn visit_Negate(&mut self, ctx: &NegateContext<'input>) { |
691 | 64.4k | let result = <Self as CELVisitorCompat>::visit_Negate(self, ctx); |
692 | 64.4k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
693 | 64.4k | } |
694 | | |
695 | 18.0k | fn visit_MemberCall(&mut self, ctx: &MemberCallContext<'input>) { |
696 | 18.0k | let result = <Self as CELVisitorCompat>::visit_MemberCall(self, ctx); |
697 | 18.0k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
698 | 18.0k | } |
699 | | |
700 | 583k | fn visit_Select(&mut self, ctx: &SelectContext<'input>) { |
701 | 583k | let result = <Self as CELVisitorCompat>::visit_Select(self, ctx); |
702 | 583k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
703 | 583k | } |
704 | | |
705 | 1.66M | fn visit_PrimaryExpr(&mut self, ctx: &PrimaryExprContext<'input>) { |
706 | 1.66M | let result = <Self as CELVisitorCompat>::visit_PrimaryExpr(self, ctx); |
707 | 1.66M | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
708 | 1.66M | } |
709 | | |
710 | 33.8k | fn visit_Index(&mut self, ctx: &IndexContext<'input>) { |
711 | 33.8k | let result = <Self as CELVisitorCompat>::visit_Index(self, ctx); |
712 | 33.8k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
713 | 33.8k | } |
714 | | |
715 | 897k | fn visit_Ident(&mut self, ctx: &IdentContext<'input>) { |
716 | 897k | let result = <Self as CELVisitorCompat>::visit_Ident(self, ctx); |
717 | 897k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
718 | 897k | } |
719 | | |
720 | 13.1k | fn visit_GlobalCall(&mut self, ctx: &GlobalCallContext<'input>) { |
721 | 13.1k | let result = <Self as CELVisitorCompat>::visit_GlobalCall(self, ctx); |
722 | 13.1k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
723 | 13.1k | } |
724 | | |
725 | 4.58k | fn visit_Nested(&mut self, ctx: &NestedContext<'input>) { |
726 | 4.58k | let result = <Self as CELVisitorCompat>::visit_Nested(self, ctx); |
727 | 4.58k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
728 | 4.58k | } |
729 | | |
730 | 122k | fn visit_CreateList(&mut self, ctx: &CreateListContext<'input>) { |
731 | 122k | let result = <Self as CELVisitorCompat>::visit_CreateList(self, ctx); |
732 | 122k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
733 | 122k | } |
734 | | |
735 | 21.7k | fn visit_CreateStruct(&mut self, ctx: &CreateStructContext<'input>) { |
736 | 21.7k | let result = <Self as CELVisitorCompat>::visit_CreateStruct(self, ctx); |
737 | 21.7k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
738 | 21.7k | } |
739 | | |
740 | 10.0k | fn visit_CreateMessage(&mut self, ctx: &CreateMessageContext<'input>) { |
741 | 10.0k | let result = <Self as CELVisitorCompat>::visit_CreateMessage(self, ctx); |
742 | 10.0k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
743 | 10.0k | } |
744 | | |
745 | 597k | fn visit_ConstantLiteral(&mut self, ctx: &ConstantLiteralContext<'input>) { |
746 | 597k | let result = <Self as CELVisitorCompat>::visit_ConstantLiteral(self, ctx); |
747 | 597k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
748 | 597k | } |
749 | | |
750 | 0 | fn visit_exprList(&mut self, ctx: &ExprListContext<'input>) { |
751 | 0 | let result = <Self as CELVisitorCompat>::visit_exprList(self, ctx); |
752 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
753 | 0 | } |
754 | | |
755 | 0 | fn visit_listInit(&mut self, ctx: &ListInitContext<'input>) { |
756 | 0 | let result = <Self as CELVisitorCompat>::visit_listInit(self, ctx); |
757 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
758 | 0 | } |
759 | | |
760 | 0 | fn visit_field_initializer_list(&mut self, ctx: &Field_initializer_listContext<'input>) { |
761 | 0 | let result = <Self as CELVisitorCompat>::visit_field_initializer_list(self, ctx); |
762 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
763 | 0 | } |
764 | | |
765 | 0 | fn visit_optField(&mut self, ctx: &OptFieldContext<'input>) { |
766 | 0 | let result = <Self as CELVisitorCompat>::visit_optField(self, ctx); |
767 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
768 | 0 | } |
769 | | |
770 | 0 | fn visit_mapInitializerList(&mut self, ctx: &MapInitializerListContext<'input>) { |
771 | 0 | let result = <Self as CELVisitorCompat>::visit_mapInitializerList(self, ctx); |
772 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
773 | 0 | } |
774 | | |
775 | 0 | fn visit_SimpleIdentifier(&mut self, ctx: &SimpleIdentifierContext<'input>) { |
776 | 0 | let result = <Self as CELVisitorCompat>::visit_SimpleIdentifier(self, ctx); |
777 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
778 | 0 | } |
779 | | |
780 | 0 | fn visit_EscapedIdentifier(&mut self, ctx: &EscapedIdentifierContext<'input>) { |
781 | 0 | let result = <Self as CELVisitorCompat>::visit_EscapedIdentifier(self, ctx); |
782 | 0 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
783 | 0 | } |
784 | | |
785 | 57.7k | fn visit_optExpr(&mut self, ctx: &OptExprContext<'input>) { |
786 | 57.7k | let result = <Self as CELVisitorCompat>::visit_optExpr(self, ctx); |
787 | 57.7k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
788 | 57.7k | } |
789 | | |
790 | 406k | fn visit_Int(&mut self, ctx: &IntContext<'input>) { |
791 | 406k | let result = <Self as CELVisitorCompat>::visit_Int(self, ctx); |
792 | 406k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
793 | 406k | } |
794 | | |
795 | 33.0k | fn visit_Uint(&mut self, ctx: &UintContext<'input>) { |
796 | 33.0k | let result = <Self as CELVisitorCompat>::visit_Uint(self, ctx); |
797 | 33.0k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
798 | 33.0k | } |
799 | | |
800 | 24.6k | fn visit_Double(&mut self, ctx: &DoubleContext<'input>) { |
801 | 24.6k | let result = <Self as CELVisitorCompat>::visit_Double(self, ctx); |
802 | 24.6k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
803 | 24.6k | } |
804 | | |
805 | 116k | fn visit_String(&mut self, ctx: &StringContext<'input>) { |
806 | 116k | let result = <Self as CELVisitorCompat>::visit_String(self, ctx); |
807 | 116k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
808 | 116k | } |
809 | | |
810 | 6.72k | fn visit_Bytes(&mut self, ctx: &BytesContext<'input>) { |
811 | 6.72k | let result = <Self as CELVisitorCompat>::visit_Bytes(self, ctx); |
812 | 6.72k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
813 | 6.72k | } |
814 | | |
815 | 6.56k | fn visit_BoolTrue(&mut self, ctx: &BoolTrueContext<'input>) { |
816 | 6.56k | let result = <Self as CELVisitorCompat>::visit_BoolTrue(self, ctx); |
817 | 6.56k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
818 | 6.56k | } |
819 | | |
820 | 1.70k | fn visit_BoolFalse(&mut self, ctx: &BoolFalseContext<'input>) { |
821 | 1.70k | let result = <Self as CELVisitorCompat>::visit_BoolFalse(self, ctx); |
822 | 1.70k | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
823 | 1.70k | } |
824 | | |
825 | 907 | fn visit_Null(&mut self, ctx: &NullContext<'input>) { |
826 | 907 | let result = <Self as CELVisitorCompat>::visit_Null(self, ctx); |
827 | 907 | *<Self as ParseTreeVisitorCompat>::temp_result(self) = result; |
828 | 907 | } |
829 | | } |