We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f40e47 commit c4f65f8Copy full SHA for c4f65f8
src/compiler/program.ts
@@ -105,7 +105,10 @@ namespace ts {
105
}
106
107
export function getPreEmitDiagnostics(program: Program, sourceFile?: SourceFile): Diagnostic[] {
108
- let diagnostics = program.getOptionsDiagnostics().concat(program.getSyntacticDiagnostics(sourceFile)).concat(program.getGlobalDiagnostics()).concat(program.getSemanticDiagnostics(sourceFile));
+ let diagnostics = program.getOptionsDiagnostics().concat(
109
+ program.getSyntacticDiagnostics(sourceFile),
110
+ program.getGlobalDiagnostics(),
111
+ program.getSemanticDiagnostics(sourceFile));
112
113
if (program.getCompilerOptions().declaration) {
114
diagnostics.concat(program.getDeclarationDiagnostics(sourceFile));
0 commit comments