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

Method visitConst

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

Source from the content-addressed store, hash-verified

326 return nil
327}
328func (un *unparser) visitConst(expr ast.Expr) error {
329 val := expr.AsLiteral()
330 if err := un.visitConstVal(val); err != nil {
331 return fmt.Errorf("unsupported constant: %v", expr)
332 }
333 return nil
334}
335
336func (un *unparser) visitIdent(expr ast.Expr) error {
337 un.str.WriteString(expr.AsIdent())

Callers 1

visitMethod · 0.95

Calls 2

visitConstValMethod · 0.95
AsLiteralMethod · 0.65

Tested by

no test coverage detected