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

Method VisitString

parser/parser.go:812–815  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#String.

(ctx *gen.StringContext)

Source from the content-addressed store, hash-verified

810
811// Visit a parse tree produced by CELParser#String.
812func (p *parser) VisitString(ctx *gen.StringContext) any {
813 s := p.unquote(ctx, ctx.GetTok().GetText(), false)
814 return p.helper.newLiteralString(ctx, s)
815}
816
817// Visit a parse tree produced by CELParser#Bytes.
818func (p *parser) VisitBytes(ctx *gen.BytesContext) any {

Callers 1

VisitMethod · 0.95

Calls 4

unquoteMethod · 0.95
GetTextMethod · 0.80
newLiteralStringMethod · 0.80
GetTokMethod · 0.45

Tested by

no test coverage detected