return createValidator(compiler);
}
private AstValidator createValidator(Compiler compiler) {
lastCheckWasValid = true;
return new AstValidator(compiler, new ViolationHandler() {
@Override
public void handleViolation(String message, Node n) {
lastCheckWasValid = false;
}
});