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

Method visitSelect

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

Source from the content-addressed store, hash-verified

409}
410
411func (un *unparser) visitSelect(expr ast.Expr) error {
412 sel := expr.AsSelect()
413 return un.visitSelectInternal(sel.Operand(), sel.IsTestOnly(), ".", sel.FieldName())
414}
415
416func (un *unparser) visitSelectInternal(operand ast.Expr, testOnly bool, op string, field string) error {
417 // 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