code: public void stage1Passes() {
      checkState(moduleGraph != null, "No inputs. Did you call init() or initModules()?");
      checkState(!hasErrors());
      checkState(!options.getInstrumentForCoverageOnly());
      runInCompilerThread(
          () -> {
            performChecksAndTranspilation();
            return null;
          });
    }
docs: Perform compiler passes for stage 1 of compilation.
  
  <p>Stage 1 consists primarily of error and type checking passes.
  
  <p>{@code parseForCompilation()} must be called before this method is called.
  
  <p>The caller is responsible for also calling {@code generateReport()} to generate a report of
  warnings and errors to stderr. See the invocation in {@link #compile} for a good example.