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

Method SetMacroCall

cel/optimizer.go:311–313  ·  view source on GitHub ↗

SetMacroCall sets the macro call metadata for the given macro id within the tracked source info metadata.

(id int64, expr ast.Expr)

Source from the content-addressed store, hash-verified

309// SetMacroCall sets the macro call metadata for the given macro id within the tracked source info
310// metadata.
311func (opt *optimizerExprFactory) SetMacroCall(id int64, expr ast.Expr) {
312 opt.sourceInfo.SetMacroCall(id, expr)
313}
314
315// MacroCalls returns the map of macro calls currently in the context.
316func (opt *optimizerExprFactory) MacroCalls() map[int64]ast.Expr {

Callers 7

CopyASTAndMetadataMethod · 0.95
NewBindMacroMethod · 0.95
OptimizeMethod · 0.45
OptimizeMethod · 0.45
rewritePresenceExprMethod · 0.45
normalizeIDsFunction · 0.45
UpdateExprMethod · 0.45

Calls

no outgoing calls

Tested by 1

OptimizeMethod · 0.36