getSemanticDiagnosticsOfNextAffectedFile

abstract fun getSemanticDiagnosticsOfNextAffectedFile(    cancellationToken: CancellationToken = definedExternally,     ignoreSourceFile: (sourceFile: SourceFile) -> Boolean = definedExternally): AffectedFileResult<<Error class: unknown class><Diagnostic>>(source)

Gets the semantic diagnostics from the program for the next affected file and caches it Returns undefined if the iteration is complete