org.jetbrains.kotlin.analysis.api.diagnostics¶
Types¶
KaDiagnostic¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaDiagnostic : KaLifetimeOwner
A diagnostic message reported by the compiler checker.
KaDiagnosticCheckerKind¶
class KaDiagnosticCheckerKind
A kind of compiler checkers which report diagnostics.
KaDiagnostics¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaDiagnostics : KaLifetimeOwner, Sequence<KaDiagnosticWithPsi<*>>
A description of a diagnostic query, which yields the requested diagnostics on iteration.
KaDiagnosticWithPsi¶
@SubclassOptInRequired(markerClass = [KaImplementationDetail::class])
interface KaDiagnosticWithPsi<out PSI : PsiElement> : KaDiagnostic
A KaDiagnostic reported on a PsiElement of type PSI.
KaSeverity¶
enum class KaSeverity : Enum<KaSeverity>
The severity of a KaDiagnostic.
Functions¶
diagnostics¶
context(session: KaSession)
fun KtElement.diagnostics(): KaDiagnostics
Returns the diagnostics reported on the given KtElement.