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

Method SetMacroCall

common/ast/ast.go:335–339  ·  view source on GitHub ↗

SetMacroCall records a macro call at a specific location.

(id int64, e Expr)

Source from the content-addressed store, hash-verified

333
334// SetMacroCall records a macro call at a specific location.
335func (s *SourceInfo) SetMacroCall(id int64, e Expr) {
336 if s != nil {
337 s.macroCalls[id] = e
338 }
339}
340
341// ClearMacroCall removes the macro call at the given expression id.
342func (s *SourceInfo) ClearMacroCall(id int64) {

Callers 4

PruneAstFunction · 0.95
ProtoToSourceInfoFunction · 0.95
addMacroCallMethod · 0.45
TestMaxIDFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestMaxIDFunction · 0.36