MCPcopy Create free account
hub / github.com/cel-expr/cel-go / VisitCreateList

Method VisitCreateList

parser/antlr_parser.go:630–634  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#CreateList.

(ctx *gen.CreateListContext)

Source from the content-addressed store, hash-verified

628
629// Visit a parse tree produced by CELParser#CreateList.
630func (p *antlrVisitor) VisitCreateList(ctx *gen.CreateListContext) any {
631 listID := p.helper.id(ctx.GetOp())
632 elems, optionals := p.visitListInit(ctx.GetElems())
633 return p.helper.newList(listID, elems, optionals...)
634}
635
636// Visit a parse tree produced by CELParser#CreateStruct.
637func (p *antlrVisitor) VisitCreateStruct(ctx *gen.CreateStructContext) any {

Callers 1

VisitMethod · 0.95

Calls 5

visitListInitMethod · 0.95
idMethod · 0.80
newListMethod · 0.80
GetOpMethod · 0.65
GetElemsMethod · 0.65

Tested by

no test coverage detected