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

Method Buffer

common/debug/debug.go:83–106  ·  view source on GitHub ↗
(e ast.Expr)

Source from the content-addressed store, hash-verified

81}
82
83func (w *debugWriter) Buffer(e ast.Expr) {
84 if e == nil {
85 return
86 }
87 switch e.Kind() {
88 case ast.LiteralKind:
89 w.append(formatLiteral(e.AsLiteral()))
90 case ast.IdentKind:
91 w.append(e.AsIdent())
92 case ast.SelectKind:
93 w.appendSelect(e.AsSelect())
94 case ast.CallKind:
95 w.appendCall(e.AsCall())
96 case ast.ListKind:
97 w.appendList(e.AsList())
98 case ast.MapKind:
99 w.appendMap(e.AsMap())
100 case ast.StructKind:
101 w.appendStruct(e.AsStruct())
102 case ast.ComprehensionKind:
103 w.appendComprehension(e.AsComprehension())
104 }
105 w.adorn(e)
106}
107
108func (w *debugWriter) appendSelect(sel ast.SelectExpr) {
109 w.Buffer(sel.Operand())

Callers 6

appendSelectMethod · 0.95
appendCallMethod · 0.95
appendListMethod · 0.95
appendStructMethod · 0.95
appendMapMethod · 0.95
appendComprehensionMethod · 0.95

Calls 15

appendMethod · 0.95
appendSelectMethod · 0.95
appendCallMethod · 0.95
appendListMethod · 0.95
appendMapMethod · 0.95
appendStructMethod · 0.95
appendComprehensionMethod · 0.95
adornMethod · 0.95
formatLiteralFunction · 0.85
KindMethod · 0.65
AsLiteralMethod · 0.65
AsIdentMethod · 0.65

Tested by

no test coverage detected