Visit a parse tree produced by CELParser#CreateStruct.
(ctx *gen.CreateStructContext)
| 721 | |
| 722 | // Visit a parse tree produced by CELParser#CreateStruct. |
| 723 | func (p *parser) VisitCreateStruct(ctx *gen.CreateStructContext) any { |
| 724 | structID := p.helper.id(ctx.GetOp()) |
| 725 | entries := []ast.EntryExpr{} |
| 726 | if ctx.GetEntries() != nil { |
| 727 | entries = p.Visit(ctx.GetEntries()).([]ast.EntryExpr) |
| 728 | } |
| 729 | return p.helper.newMap(structID, entries...) |
| 730 | } |
| 731 | |
| 732 | // Visit a parse tree produced by CELParser#mapInitializerList. |
| 733 | func (p *parser) VisitMapInitializerList(ctx *gen.MapInitializerListContext) any { |