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

Method visitConst

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

Source from the content-addressed store, hash-verified

364 return nil
365}
366func (un *unparser) visitConst(expr ast.Expr) error {
367 val := expr.AsLiteral()
368 if err := un.visitConstVal(val); err != nil {
369 return fmt.Errorf("unsupported constant: %v", expr)
370 }
371 return nil
372}
373
374func (un *unparser) visitIdent(expr ast.Expr) error {
375 un.str.WriteString(un.maybeQuoteIdent(expr.AsIdent()))

Callers 1

visitMethod · 0.95

Calls 2

visitConstValMethod · 0.95
AsLiteralMethod · 0.65

Tested by

no test coverage detected