org.jetbrains.kotlin.cli.common.messages
Class AnalyzerWithCompilerReport

java.lang.Object
  extended by org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport

public final class AnalyzerWithCompilerReport
extends java.lang.Object


Nested Class Summary
static class AnalyzerWithCompilerReport.SyntaxErrorReport
           
 
Constructor Summary
AnalyzerWithCompilerReport(MessageCollector collector)
           
 
Method Summary
 void analyzeAndReport(java.util.Collection<KtFile> files, kotlin.jvm.functions.Function0<AnalysisResult> analyzer)
           
static CompilerMessageSeverity convertSeverity(Severity severity)
           
 AnalysisResult getAnalysisResult()
           
 boolean hasErrors()
           
static boolean reportDiagnostics(Diagnostics diagnostics, DiagnosticMessageReporter reporter, boolean incompatibleFilesFound)
           
static boolean reportDiagnostics(Diagnostics diagnostics, MessageCollector messageCollector)
           
static boolean reportDiagnostics(Diagnostics diagnostics, MessageCollector messageCollector, boolean incompatibleFilesFound)
           
static AnalyzerWithCompilerReport.SyntaxErrorReport reportSyntaxErrors(com.intellij.psi.PsiElement file, DiagnosticMessageReporter reporter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzerWithCompilerReport

public AnalyzerWithCompilerReport(@NotNull
                                  MessageCollector collector)
Method Detail

convertSeverity

@NotNull
public static CompilerMessageSeverity convertSeverity(@NotNull
                                                              Severity severity)

reportDiagnostics

public static boolean reportDiagnostics(@NotNull
                                        Diagnostics diagnostics,
                                        @NotNull
                                        DiagnosticMessageReporter reporter,
                                        boolean incompatibleFilesFound)

reportDiagnostics

public static boolean reportDiagnostics(@NotNull
                                        Diagnostics diagnostics,
                                        @NotNull
                                        MessageCollector messageCollector,
                                        boolean incompatibleFilesFound)

reportDiagnostics

public static boolean reportDiagnostics(@NotNull
                                        Diagnostics diagnostics,
                                        @NotNull
                                        MessageCollector messageCollector)

reportSyntaxErrors

public static AnalyzerWithCompilerReport.SyntaxErrorReport reportSyntaxErrors(@NotNull
                                                                              com.intellij.psi.PsiElement file,
                                                                              @NotNull
                                                                              DiagnosticMessageReporter reporter)

getAnalysisResult

@Nullable
public AnalysisResult getAnalysisResult()

hasErrors

public boolean hasErrors()

analyzeAndReport

public void analyzeAndReport(@NotNull
                             java.util.Collection<KtFile> files,
                             @NotNull
                             kotlin.jvm.functions.Function0<AnalysisResult> analyzer)