(exprID int64, function string, target ast.Expr, args ...ast.Expr)
| 348 | } |
| 349 | |
| 350 | func (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 | |
| 357 | func (p *prattParserWorker) expandMacro(exprID int64, function string, target ast.Expr, args ...ast.Expr) (ast.Expr, bool) { |
| 358 | if len(p.macros) == 0 { |
no test coverage detected