Visit a parse tree produced by CELParser#CreateStruct.
(ctx *gen.CreateStructContext)
| 729 | |
| 730 | // Visit a parse tree produced by CELParser#CreateStruct. |
| 731 | func (p *parser) VisitCreateStruct(ctx *gen.CreateStructContext) any { |
| 732 | structID := p.helper.id(ctx.GetOp()) |
| 733 | entries := []ast.EntryExpr{} |
| 734 | if ctx.GetEntries() != nil { |
| 735 | entries = p.Visit(ctx.GetEntries()).([]ast.EntryExpr) |
| 736 | } |
| 737 | return p.helper.newMap(structID, entries...) |
| 738 | } |
| 739 | |
| 740 | // Visit a parse tree produced by CELParser#mapInitializerList. |
| 741 | func (p *parser) VisitMapInitializerList(ctx *gen.MapInitializerListContext) any { |