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

Method newLiteral

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

Source from the content-addressed store, hash-verified

50}
51
52func (p *parserHelper) newLiteral(ctx any, value ref.Val) ast.Expr {
53 return p.exprFactory.NewLiteral(p.newID(ctx), value)
54}
55
56func (p *parserHelper) newLiteralBool(ctx any, value bool) ast.Expr {
57 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