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

Method NewLiteral

parser/helper.go:411–413  ·  view source on GitHub ↗

NewLiteral implements the ExprHelper interface method.

(value ref.Val)

Source from the content-addressed store, hash-verified

409
410// NewLiteral implements the ExprHelper interface method.
411func (e *exprHelper) NewLiteral(value ref.Val) ast.Expr {
412 return e.exprFactory.NewLiteral(e.nextMacroID(), value)
413}
414
415// NewList implements the ExprHelper interface method.
416func (e *exprHelper) NewList(elems ...ast.Expr) ast.Expr {

Callers

nothing calls this directly

Calls 2

nextMacroIDMethod · 0.95
NewLiteralMethod · 0.65

Tested by

no test coverage detected