mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Rename and consolidate map iteration helpers
This commit is contained in:
1 parent
39c19a74ea
commit
932eaa3f90
13 files changed
+32
-55
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user