diagnostics¶
context(session: KaSession)
fun KtElement.diagnostics(): KaDiagnostics
Returns the diagnostics reported on the given KtElement.
The result is computed lazily, and only as far as it is iterated. See KaDiagnostics for the defaults and for the ways to adjust them.