KindMatcher returns an ExprMatcher which will return true if the input NavigableExpr.Kind() matches the specified `kind`.
(kind ExprKind)
| 76 | // KindMatcher returns an ExprMatcher which will return true if the input NavigableExpr.Kind() matches |
| 77 | // the specified `kind`. |
| 78 | func KindMatcher(kind ExprKind) ExprMatcher { |
| 79 | return func(e NavigableExpr) bool { |
| 80 | return e.Kind() == kind |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | // FunctionMatcher returns an ExprMatcher which will match NavigableExpr nodes of CallKind type whose |
| 85 | // function name is equal to `funcName`. |