Minor improvements to context handling
Minor improvement to visitCompilationUnit()
Omit type in anonymous function
Remove useless check

Might have been useful in early development, but we’re way past that.
Use shortcut function syntax
Use null-safe invocation instead of if statement
Minor improvement to visitResourceList()
Reword comment
Remove assertions from Patterns

Forgot to do this for the initial release.