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

Method newLiteral

parser/helper.go:48–50  ·  view source on GitHub ↗
(ctx any, value ref.Val)

Source from the content-addressed store, hash-verified

46}
47
48func (p *parserHelper) newLiteral(ctx any, value ref.Val) ast.Expr {
49 return p.exprFactory.NewLiteral(p.newID(ctx), value)
50}
51
52func (p *parserHelper) newLiteralBool(ctx any, value bool) ast.Expr {
53 return p.newLiteral(ctx, types.Bool(value))

Callers 6

newLiteralBoolMethod · 0.95
newLiteralStringMethod · 0.95
newLiteralBytesMethod · 0.95
newLiteralIntMethod · 0.95
newLiteralUintMethod · 0.95
newLiteralDoubleMethod · 0.95

Calls 2

newIDMethod · 0.95
NewLiteralMethod · 0.65

Tested by

no test coverage detected