(exprs ...ast.NavigableExpr)
| 605 | } |
| 606 | |
| 607 | func enumerateExprIDs(exprs ...ast.NavigableExpr) []int64 { |
| 608 | ids := make([]int64, 0, len(exprs)) |
| 609 | for _, e := range exprs { |
| 610 | ids = append(ids, e.ID()) |
| 611 | ids = append(ids, enumerateExprIDs(e.Children()...)...) |
| 612 | } |
| 613 | return ids |
| 614 | } |
| 615 | |
| 616 | func reduceHeight(heights map[int64]int, e ast.NavigableExpr, amount int) { |
| 617 | height := heights[e.ID()] |
no test coverage detected