(macroID int64, macroExpr ast.Expr)
| 564 | } |
| 565 | |
| 566 | func (opt *optimizerExprFactory) sanitizeMacro(macroID int64, macroExpr ast.Expr) { |
| 567 | macroRefVisitor := ast.NewExprVisitor(func(e ast.Expr) { |
| 568 | if _, exists := opt.sourceInfo.GetMacroCall(e.ID()); exists && e.ID() != macroID { |
| 569 | e.SetKindCase(nil) |
| 570 | } |
| 571 | }) |
| 572 | ast.PostOrderVisit(macroExpr, macroRefVisitor) |
| 573 | } |
no test coverage detected