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

Method MacroCalls

common/ast/ast.go:310–315  ·  view source on GitHub ↗

MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression node where the macro was inserted into the AST, and the ast.Expr value represents the original call signature which was replaced.

()

Source from the content-addressed store, hash-verified

308// node where the macro was inserted into the AST, and the ast.Expr value represents the original call
309// signature which was replaced.
310func (s *SourceInfo) MacroCalls() map[int64]Expr {
311 if s == nil {
312 return map[int64]Expr{}
313 }
314 return s.macroCalls
315}
316
317// GetMacroCall returns the original ast.Expr value for the given expression if it was generated via
318// a macro replacement.

Callers 9

GetMacroCallMethod · 0.95
TestPruneFunction · 0.45
MaxIDFunction · 0.45
IDsMethod · 0.45
TestASTCopyFunction · 0.45
TestASTJsonNamesFunction · 0.45
TestSourceInfoNilSafetyFunction · 0.45
SourceInfoToProtoFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestPruneFunction · 0.36
TestASTCopyFunction · 0.36
TestASTJsonNamesFunction · 0.36
TestSourceInfoNilSafetyFunction · 0.36