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

Method NewLiteral

parser/helper.go:407–409  ·  view source on GitHub ↗

NewLiteral implements the ExprHelper interface method.

(value ref.Val)

Source from the content-addressed store, hash-verified

405
406// NewLiteral implements the ExprHelper interface method.
407func (e *exprHelper) NewLiteral(value ref.Val) ast.Expr {
408 return e.exprFactory.NewLiteral(e.nextMacroID(), value)
409}
410
411// NewList implements the ExprHelper interface method.
412func (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