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

Method SetKindCase

common/ast/expr.go:113–113  ·  view source on GitHub ↗

SetKindCase replaces the contents of the current expression with the contents of the other. The SetKindCase takes ownership of any expression instances references within the input Expr. A shallow copy is made of the Expr value itself, but not a deep one. This method should only be used during AST

(Expr)

Source from the content-addressed store, hash-verified

111 //
112 // This method should only be used during AST rewrites using temporary Expr values.
113 SetKindCase(Expr)
114
115 // isExpr is a marker interface.
116 isExpr()

Callers 8

checkIdentMethod · 0.65
checkSelectMethod · 0.65
checkCallMethod · 0.65
checkCreateStructMethod · 0.65
UpdateExprMethod · 0.65
sanitizeMacroMethod · 0.65
TestSetKindCaseFunction · 0.65
nilTestExprFunction · 0.65

Calls

no outgoing calls

Tested by 2

TestSetKindCaseFunction · 0.52
nilTestExprFunction · 0.52