org.jetbrains.kotlin.checkers
Class CheckerTestUtil

java.lang.Object
  extended by org.jetbrains.kotlin.checkers.CheckerTestUtil

public class CheckerTestUtil
extends java.lang.Object


Nested Class Summary
static class CheckerTestUtil.AbstractDiagnosticForTests
           
static class CheckerTestUtil.DebugInfoDiagnostic
           
static class CheckerTestUtil.DebugInfoDiagnosticFactory
           
static class CheckerTestUtil.DiagnosedRange
           
static interface CheckerTestUtil.DiagnosticDiffCallbacks
           
static class CheckerTestUtil.SyntaxErrorDiagnostic
           
static class CheckerTestUtil.SyntaxErrorDiagnosticFactory
           
static class CheckerTestUtil.TextDiagnostic
           
 
Field Summary
static java.util.Comparator<Diagnostic> DIAGNOSTIC_COMPARATOR
           
 
Constructor Summary
CheckerTestUtil()
           
 
Method Summary
static java.lang.StringBuffer addDiagnosticMarkersToText(com.intellij.psi.PsiFile psiFile, java.util.Collection<Diagnostic> diagnostics)
           
static java.lang.StringBuffer addDiagnosticMarkersToText(com.intellij.psi.PsiFile psiFile, java.util.Collection<Diagnostic> diagnostics, java.util.Map<Diagnostic,CheckerTestUtil.TextDiagnostic> diagnosticToExpectedDiagnostic, com.intellij.util.Function<com.intellij.psi.PsiFile,java.lang.String> getFileText)
           
static void diagnosticsDiff(java.util.Map<Diagnostic,CheckerTestUtil.TextDiagnostic> diagnosticToExpectedDiagnostic, java.util.List<CheckerTestUtil.DiagnosedRange> expected, java.util.Collection<Diagnostic> actual, CheckerTestUtil.DiagnosticDiffCallbacks callbacks)
           
static java.util.List<Diagnostic> getDiagnosticsIncludingSyntaxErrors(BindingContext bindingContext, com.intellij.psi.PsiElement root, boolean markDynamicCalls, java.util.List<DeclarationDescriptor> dynamicCallDescriptors)
           
static java.lang.String parseDiagnosedRanges(java.lang.String text, java.util.List<CheckerTestUtil.DiagnosedRange> result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIAGNOSTIC_COMPARATOR

public static final java.util.Comparator<Diagnostic> DIAGNOSTIC_COMPARATOR
Constructor Detail

CheckerTestUtil

public CheckerTestUtil()
Method Detail

getDiagnosticsIncludingSyntaxErrors

@NotNull
public static java.util.List<Diagnostic> getDiagnosticsIncludingSyntaxErrors(@NotNull
                                                                                     BindingContext bindingContext,
                                                                                     @NotNull
                                                                                     com.intellij.psi.PsiElement root,
                                                                                     boolean markDynamicCalls,
                                                                                     @Nullable
                                                                                     java.util.List<DeclarationDescriptor> dynamicCallDescriptors)

diagnosticsDiff

public static void diagnosticsDiff(java.util.Map<Diagnostic,CheckerTestUtil.TextDiagnostic> diagnosticToExpectedDiagnostic,
                                   java.util.List<CheckerTestUtil.DiagnosedRange> expected,
                                   java.util.Collection<Diagnostic> actual,
                                   CheckerTestUtil.DiagnosticDiffCallbacks callbacks)

parseDiagnosedRanges

public static java.lang.String parseDiagnosedRanges(java.lang.String text,
                                                    java.util.List<CheckerTestUtil.DiagnosedRange> result)

addDiagnosticMarkersToText

public static java.lang.StringBuffer addDiagnosticMarkersToText(@NotNull
                                                                com.intellij.psi.PsiFile psiFile,
                                                                @NotNull
                                                                java.util.Collection<Diagnostic> diagnostics)

addDiagnosticMarkersToText

public static java.lang.StringBuffer addDiagnosticMarkersToText(@NotNull
                                                                com.intellij.psi.PsiFile psiFile,
                                                                @NotNull
                                                                java.util.Collection<Diagnostic> diagnostics,
                                                                @NotNull
                                                                java.util.Map<Diagnostic,CheckerTestUtil.TextDiagnostic> diagnosticToExpectedDiagnostic,
                                                                @NotNull
                                                                com.intellij.util.Function<com.intellij.psi.PsiFile,java.lang.String> getFileText)