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

Method VisitString

parser/parser.go:820–823  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#String.

(ctx *gen.StringContext)

Source from the content-addressed store, hash-verified

818
819// Visit a parse tree produced by CELParser#String.
820func (p *parser) VisitString(ctx *gen.StringContext) any {
821 s := p.unquote(ctx, ctx.GetTok().GetText(), false)
822 return p.helper.newLiteralString(ctx, s)
823}
824
825// Visit a parse tree produced by CELParser#Bytes.
826func (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