method Program.prototype.getSemanticDiagnosticsimport { Program } from "https://deno.land/x/ts_morph@22.0.0/mod.ts"; getSemanticDiagnostics(sourceFile?: SourceFile): Diagnostic[]Gets the semantic diagnostics. Gets the semantic diagnostics. ParametersoptionalsourceFile: SourceFile Optional source file to filter by. ReturnsDiagnostic[]