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

Method VisitBytes

parser/parser.go:818–821  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#Bytes.

(ctx *gen.BytesContext)

Source from the content-addressed store, hash-verified

816
817// Visit a parse tree produced by CELParser#Bytes.
818func (p *parser) VisitBytes(ctx *gen.BytesContext) any {
819 b := []byte(p.unquote(ctx, ctx.GetTok().GetText()[1:], true))
820 return p.helper.newLiteralBytes(ctx, b)
821}
822
823// Visit a parse tree produced by CELParser#BoolTrue.
824func (p *parser) VisitBoolTrue(ctx *gen.BoolTrueContext) any {

Callers 1

VisitMethod · 0.95

Calls 4

unquoteMethod · 0.95
GetTextMethod · 0.80
newLiteralBytesMethod · 0.80
GetTokMethod · 0.45

Tested by

no test coverage detected