(macroID int64, macroExpr ast.Expr)
| 570 | } |
| 571 | |
| 572 | func (opt *optimizerExprFactory) sanitizeMacro(macroID int64, macroExpr ast.Expr) { |
| 573 | macroRefVisitor := ast.NewExprVisitor(func(e ast.Expr) { |
| 574 | if _, exists := opt.sourceInfo.GetMacroCall(e.ID()); exists && e.ID() != macroID { |
| 575 | e.SetKindCase(nil) |
| 576 | } |
| 577 | }) |
| 578 | ast.PostOrderVisit(macroExpr, macroRefVisitor) |
| 579 | } |
no test coverage detected