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

Method newLiteralBool

parser/helper.go:56–58  ·  view source on GitHub ↗
(ctx any, value bool)

Source from the content-addressed store, hash-verified

54}
55
56func (p *parserHelper) newLiteralBool(ctx any, value bool) ast.Expr {
57 return p.newLiteral(ctx, types.Bool(value))
58}
59
60func (p *parserHelper) newLiteralString(ctx any, value string) ast.Expr {
61 return p.newLiteral(ctx, types.String(value))

Callers 2

VisitBoolTrueMethod · 0.80
VisitBoolFalseMethod · 0.80

Calls 2

newLiteralMethod · 0.95
BoolTypeAlias · 0.92

Tested by

no test coverage detected