Ejemplo n.º 1
0
  public static AnalyzeExhaust analyzeOneFileWithJavaIntegrationAndCheckForErrors(
      JetFile file, List<AnalyzerScriptParameter> scriptParameters) {
    AnalyzingUtils.checkForSyntacticErrors(file);

    AnalyzeExhaust analyzeExhaust = analyzeOneFileWithJavaIntegration(file, scriptParameters);

    AnalyzingUtils.throwExceptionOnErrors(analyzeExhaust.getBindingContext());

    return analyzeExhaust;
  }
Ejemplo n.º 2
0
  public static AnalyzeExhaust analyzeFilesWithJavaIntegrationAndCheckForErrors(
      Project project,
      Collection<JetFile> files,
      List<AnalyzerScriptParameter> scriptParameters,
      Predicate<PsiFile> filesToAnalyzeCompletely) {
    for (JetFile file : files) {
      AnalyzingUtils.checkForSyntacticErrors(file);
    }

    AnalyzeExhaust analyzeExhaust =
        analyzeFilesWithJavaIntegration(
            project, files, scriptParameters, filesToAnalyzeCompletely, false);

    AnalyzingUtils.throwExceptionOnErrors(analyzeExhaust.getBindingContext());

    return analyzeExhaust;
  }