AllMatcher returns true for all descendants of a NavigableExpr, effectively flattening them into a list. Such a result would work well with subsequent MatchList calls.
()
| 96 | // |
| 97 | // Such a result would work well with subsequent MatchList calls. |
| 98 | func AllMatcher() ExprMatcher { |
| 99 | return func(NavigableExpr) bool { |
| 100 | return true |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // MatchDescendants takes a NavigableExpr and ExprMatcher and produces a list of NavigableExpr values |
| 105 | // matching the input criteria in post-order (bottom up). |
no outgoing calls