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

Method newLiteralString

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

Source from the content-addressed store, hash-verified

54}
55
56func (p *parserHelper) newLiteralString(ctx any, value string) ast.Expr {
57 return p.newLiteral(ctx, types.String(value))
58}
59
60func (p *parserHelper) newLiteralBytes(ctx any, value []byte) ast.Expr {
61 return p.newLiteral(ctx, types.Bytes(value))

Callers 3

VisitUnaryMethod · 0.80
VisitSelectMethod · 0.80
VisitStringMethod · 0.80

Calls 2

newLiteralMethod · 0.95
StringTypeAlias · 0.92

Tested by

no test coverage detected