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

Method VisitBytes

parser/parser.go:826–829  ·  view source on GitHub ↗

Visit a parse tree produced by CELParser#Bytes.

(ctx *gen.BytesContext)

Source from the content-addressed store, hash-verified

824
825// Visit a parse tree produced by CELParser#Bytes.
826func (p *parser) VisitBytes(ctx *gen.BytesContext) any {
827 b := []byte(p.unquote(ctx, ctx.GetTok().GetText()[1:], true))
828 return p.helper.newLiteralBytes(ctx, b)
829}
830
831// Visit a parse tree produced by CELParser#BoolTrue.
832func (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