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

Method VisitCreateList

parser/parser.go:716–720  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#CreateList.

(ctx *gen.CreateListContext)

Source from the content-addressed store, hash-verified

714
715// Visit a parse tree produced by CELParser#CreateList.
716func (p *parser) VisitCreateList(ctx *gen.CreateListContext) any {
717 listID := p.helper.id(ctx.GetOp())
718 elems, optionals := p.visitListInit(ctx.GetElems())
719 return p.helper.newList(listID, elems, optionals...)
720}
721
722// Visit a parse tree produced by CELParser#CreateStruct.
723func (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