Previously if you wanted to match the statement associated with
a case, default, or labelled statement, you had to use hasDescendant.
Review comments stated that hasDescendant is heavy-handed and that a
more specific traversal matcher was preferred. This is that
traversal matcher.
- Separate matcher definitions with a blank line.
- Add corresponding unit tests for new traversal matcher.
- Add the new matcher to the Registry
- Add documentation in the AST matchers reference HTML page.
- Remove trailing semi-colon from REGISTER_MATCHER macro to be consistent with the other macro declarations and fix a missing semi-colon in the invocation of the macro.
Spurious newline?