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

Method Copy

cel/macro.go:382–384  ·  view source on GitHub ↗

Copy the input expression with a brand new set of identifiers.

(e *exprpb.Expr)

Source from the content-addressed store, hash-verified

380
381// Copy the input expression with a brand new set of identifiers.
382func (ah *adaptingHelper) Copy(e *exprpb.Expr) *exprpb.Expr {
383 return mustAdaptToProto(ah.modernHelper.Copy(mustAdaptToExpr(e)))
384}
385
386// LiteralBool creates an Expr value for a bool literal.
387func (ah *adaptingHelper) LiteralBool(value bool) *exprpb.Expr {

Callers

nothing calls this directly

Calls 3

mustAdaptToProtoFunction · 0.85
mustAdaptToExprFunction · 0.85
CopyMethod · 0.65

Tested by

no test coverage detected