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

Method receiverCallOrMacro

parser/pratt_parser.go:350–355  ·  view source on GitHub ↗
(exprID int64, function string, target ast.Expr, args ...ast.Expr)

Source from the content-addressed store, hash-verified

348}
349
350func (p *prattParserWorker) receiverCallOrMacro(exprID int64, function string, target ast.Expr, args ...ast.Expr) ast.Expr {
351 if expr, found := p.expandMacro(exprID, function, target, args...); found {
352 return expr
353 }
354 return p.helper.newReceiverCall(exprID, function, target, args...)
355}
356
357func (p *prattParserWorker) expandMacro(exprID int64, function string, target ast.Expr, args ...ast.Expr) (ast.Expr, bool) {
358 if len(p.macros) == 0 {

Callers 1

Calls 2

expandMacroMethod · 0.95
newReceiverCallMethod · 0.80

Tested by

no test coverage detected