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.
This commit is contained in:
Cyrus Najmabadi committed 2015-03-22 21:39:07 -07:00
1 parent fcd1e1f166
commit 19517ac0dd
1 file changed
-5
-5
View File
@@ -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);
}