Add noop, notImplemented, and notYetImplemented helpers

This commit is contained in:
Andy Hanson committed 2016-10-19 14:21:48 -07:00
1 parent 66857b5f8e
commit 5e7e5421fa
18 files changed
+95 -102

No files matched your search

+1 -2
View File
@@ -950,8 +950,7 @@ namespace ts {
return runWithCancellationToken(() => {
const resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile, cancellationToken);
// Don't actually write any files since we're just getting diagnostics.
const writeFile: WriteFileCallback = () => { };
return ts.getDeclarationDiagnostics(getEmitHost(writeFile), resolver, sourceFile);
return ts.getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile);
});
}