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

Method visitSelect

parser/unparser.go:373–376  ·  view source on GitHub ↗
(expr ast.Expr)

Source from the content-addressed store, hash-verified

371}
372
373func (un *unparser) visitSelect(expr ast.Expr) error {
374 sel := expr.AsSelect()
375 return un.visitSelectInternal(sel.Operand(), sel.IsTestOnly(), ".", sel.FieldName())
376}
377
378func (un *unparser) visitSelectInternal(operand ast.Expr, testOnly bool, op string, field string) error {
379 // handle the case when the select expression was generated by the has() macro.

Callers 1

visitMethod · 0.95

Calls 5

visitSelectInternalMethod · 0.95
AsSelectMethod · 0.65
OperandMethod · 0.65
IsTestOnlyMethod · 0.65
FieldNameMethod · 0.65

Tested by

no test coverage detected