org.jetbrains.kotlin.checkers
Class CheckerTestUtil
java.lang.Object
org.jetbrains.kotlin.checkers.CheckerTestUtil
public class CheckerTestUtil
- extends java.lang.Object
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 |
DIAGNOSTIC_COMPARATOR
public static final java.util.Comparator<Diagnostic> DIAGNOSTIC_COMPARATOR
CheckerTestUtil
public CheckerTestUtil()
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)