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

Method VisitNull

parser/parser.go:842–844  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#Null.

(ctx *gen.NullContext)

Source from the content-addressed store, hash-verified

840
841// Visit a parse tree produced by CELParser#Null.
842func (p *parser) VisitNull(ctx *gen.NullContext) any {
843 return p.helper.exprFactory.NewLiteral(p.helper.newID(ctx), types.NullValue)
844}
845
846func (p *parser) visitExprList(ctx gen.IExprListContext) []ast.Expr {
847 if ctx == nil {

Callers 1

VisitMethod · 0.95

Calls 2

newIDMethod · 0.80
NewLiteralMethod · 0.65

Tested by

no test coverage detected