Rename and consolidate map iteration helpers

This commit is contained in:
Andy Hanson committed 2016-12-28 09:16:38 -08:00
1 parent 39c19a74ea
commit 932eaa3f90
13 files changed
+32 -55

No files matched your search

+2 -2
View File
@@ -619,12 +619,12 @@ namespace ts.server {
const removed: string[] = [];
const updated: string[] = arrayFrom(updatedFileNames.keys());
forEachKeyInMap(currentFiles, id => {
forEachKey(currentFiles, id => {
if (!lastReportedFileNames.has(id)) {
added.push(id);
}
});
forEachKeyInMap(lastReportedFileNames, id => {
forEachKey(lastReportedFileNames, id => {
if (!currentFiles.has(id)) {
removed.push(id);
}