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

Method globalCallOrMacro

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

Source from the content-addressed store, hash-verified

951}
952
953func (p *parser) globalCallOrMacro(exprID int64, function string, args ...ast.Expr) ast.Expr {
954 if expr, found := p.expandMacro(exprID, function, nil, args...); found {
955 return expr
956 }
957 return p.helper.newGlobalCall(exprID, function, args...)
958}
959
960func (p *parser) receiverCallOrMacro(exprID int64, function string, target ast.Expr, args ...ast.Expr) ast.Expr {
961 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