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

Method VisitString

parser/antlr_parser.go:725–728  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#String.

(ctx *gen.StringContext)

Source from the content-addressed store, hash-verified

723
724// Visit a parse tree produced by CELParser#String.
725func (p *antlrVisitor) VisitString(ctx *gen.StringContext) any {
726 s := p.unquote(ctx, ctx.GetTok().GetText(), false)
727 return p.helper.newLiteralString(ctx, s)
728}
729
730// Visit a parse tree produced by CELParser#Bytes.
731func (p *antlrVisitor) 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