From 19517ac0ddf8e7ed67ee1328f379071d8e8feb51 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Sun, 22 Mar 2015 21:37:03 -0700 Subject: [PATCH] Emit, even in the presence of declaration errors and noEmitOnError. We're reverting to the previous behavior we had until there is more consensus on the best way to deal with this issue. --- src/compiler/program.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index a4c3a65f29c..f902cb3b13a 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -87,11 +87,6 @@ module ts { export function getPreEmitDiagnostics(program: Program): Diagnostic[] { let diagnostics = program.getSyntacticDiagnostics().concat(program.getGlobalDiagnostics()).concat(program.getSemanticDiagnostics()); - - if (program.getCompilerOptions().declaration) { - diagnostics.concat(program.getDeclarationDiagnostics()); - } - return sortAndDeduplicateDiagnostics(diagnostics); }