Inline keysOfMap and valuesOfMap.

This commit is contained in:
Andy Hanson
2016-12-28 09:05:52 -08:00
parent f510897dbd
commit 39c19a74ea
6 changed files with 14 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
/// <reference path="..\services\services.ts" />
/// <reference path="..\services\services.ts" />
/// <reference path="utilities.ts"/>
/// <reference path="scriptInfo.ts"/>
/// <reference path="lsHost.ts"/>
@@ -617,7 +617,7 @@ namespace ts.server {
const added: string[] = [];
const removed: string[] = [];
const updated: string[] = keysOfMap(updatedFileNames);
const updated: string[] = arrayFrom(updatedFileNames.keys());
forEachKeyInMap(currentFiles, id => {
if (!lastReportedFileNames.has(id)) {
@@ -691,7 +691,7 @@ namespace ts.server {
})
}
const allFileNames = keysOfMap(referencedFiles) as Path[];
const allFileNames = arrayFrom(referencedFiles.keys()) as Path[];
return filter(allFileNames, file => this.projectService.host.fileExists(file));
}