Visit a parse tree produced by CELParser#CreateStruct.
(ctx *gen.CreateStructContext)
| 635 | |
| 636 | // Visit a parse tree produced by CELParser#CreateStruct. |
| 637 | func (p *antlrVisitor) VisitCreateStruct(ctx *gen.CreateStructContext) any { |
| 638 | structID := p.helper.id(ctx.GetOp()) |
| 639 | entries := []ast.EntryExpr{} |
| 640 | if ctx.GetEntries() != nil { |
| 641 | entries = p.Visit(ctx.GetEntries()).([]ast.EntryExpr) |
| 642 | } |
| 643 | return p.helper.newMap(structID, entries...) |
| 644 | } |
| 645 | |
| 646 | // Visit a parse tree produced by CELParser#mapInitializerList. |
| 647 | func (p *antlrVisitor) VisitMapInitializerList(ctx *gen.MapInitializerListContext) any { |