(n ast.Node)
| 6914 | } |
| 6915 | |
| 6916 | func cleanPartition(n ast.Node) { |
| 6917 | if p, ok := n.(*ast.PartitionOptions); ok && p != nil { |
| 6918 | var tmpCleaner nodeTextCleaner |
| 6919 | if p.Interval != nil { |
| 6920 | p.Interval.SetText(nil, "") |
| 6921 | p.Interval.SetOriginTextPosition(0) |
| 6922 | p.Interval.IntervalExpr.Expr.Accept(&tmpCleaner) |
| 6923 | if p.Interval.FirstRangeEnd != nil { |
| 6924 | (*p.Interval.FirstRangeEnd).Accept(&tmpCleaner) |
| 6925 | } |
| 6926 | if p.Interval.LastRangeEnd != nil { |
| 6927 | (*p.Interval.LastRangeEnd).Accept(&tmpCleaner) |
| 6928 | } |
| 6929 | } |
| 6930 | } |
| 6931 | } |
| 6932 | |
| 6933 | // Enter implements Visitor interface. |
| 6934 | func (checker *nodeTextCleaner) Enter(in ast.Node) (out ast.Node, skipChildren bool) { |
no test coverage detected