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

Method SetMacroCall

common/ast/ast.go:327–331  ·  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

325
326// SetMacroCall records a macro call at a specific location.
327func (s *SourceInfo) SetMacroCall(id int64, e Expr) {
328 if s != nil {
329 s.macroCalls[id] = e
330 }
331}
332
333// ClearMacroCall removes the macro call at the given expression id.
334func (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