getSemanticDiagnostics

abstract fun getSemanticDiagnostics(sourceFile: SourceFile = definedExternally, cancellationToken: CancellationToken = definedExternally): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<typescript/Diagnostic>(source)

The first time this is called, it will return global diagnostics (no location).