...
These need tree pattern matching to find subtrees with the right syntax. They need to check what's on the left-hand side of rewrites, so I also need to track a list of references within each alternative.
Done:
- UNDEFINED_TOKEN_REF_IN_REWRITE
TODO:
- REWRITE_ELEMENT_NOT_PRESENT_ON_LHS
- UNDEFINED_LABEL_REF_IN_REWRITE
...