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

Method VisitCreateList

parser/parser.go:724–728  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#CreateList.

(ctx *gen.CreateListContext)

Source from the content-addressed store, hash-verified

722
723// Visit a parse tree produced by CELParser#CreateList.
724func (p *parser) VisitCreateList(ctx *gen.CreateListContext) any {
725 listID := p.helper.id(ctx.GetOp())
726 elems, optionals := p.visitListInit(ctx.GetElems())
727 return p.helper.newList(listID, elems, optionals...)
728}
729
730// Visit a parse tree produced by CELParser#CreateStruct.
731func (p *parser) 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