getDeclarationDiagnostics

abstract fun getDeclarationDiagnostics(    sourceFile: SourceFile = definedExternally,     cancellationToken: CancellationToken = definedExternally): <Error class: unknown class><DiagnosticWithLocation>(source)

Get the declaration diagnostics, for all source files if source file is not supplied