code: void setValidityCheck(PassFactory validityCheck) {
      this.validityCheck = validityCheck;
      this.changeVerifier = new ChangeVerifier(compiler).snapshot(jsRoot);
    }
docs: Adds a checker to be run after every pass. Intended for development.