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

Method MacroCalls

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

316// node where the macro was inserted into the AST, and the ast.Expr value represents the original call
317// signature which was replaced.
318func (s *SourceInfo) MacroCalls() map[int64]Expr {
319 if s == nil {
320 return map[int64]Expr{}
321 }
322 return s.macroCalls
323}
324
325// GetMacroCall returns the original ast.Expr value for the given expression if it was generated via
326// 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