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

Method globalCallOrMacro

parser/parser.go:945–950  ·  view source on GitHub ↗
(exprID int64, function string, args ...ast.Expr)

Source from the content-addressed store, hash-verified

943}
944
945func (p *parser) globalCallOrMacro(exprID int64, function string, args ...ast.Expr) ast.Expr {
946 if expr, found := p.expandMacro(exprID, function, nil, args...); found {
947 return expr
948 }
949 return p.helper.newGlobalCall(exprID, function, args...)
950}
951
952func (p *parser) receiverCallOrMacro(exprID int64, function string, target ast.Expr, args ...ast.Expr) ast.Expr {
953 if expr, found := p.expandMacro(exprID, function, target, args...); found {

Callers 7

VisitExprMethod · 0.95
VisitRelationMethod · 0.95
VisitCalcMethod · 0.95
VisitLogicalNotMethod · 0.95
VisitNegateMethod · 0.95
VisitIndexMethod · 0.95
VisitGlobalCallMethod · 0.95

Calls 2

expandMacroMethod · 0.95
newGlobalCallMethod · 0.80

Tested by

no test coverage detected