rename 'FileMap.delete' to 'FileMap.remove'

This commit is contained in:
Vladimir Matveev
2015-06-04 11:18:05 -07:00
parent 113b7ed13d
commit 495d726625
3 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ module ts {
get,
set,
contains,
delete: deleteItem,
remove,
forEachValue: forEachValueInMap
}
@@ -37,7 +37,7 @@ module ts {
return hasProperty(files, normalizeKey(fileName));
}
function deleteItem (fileName: string) {
function remove (fileName: string) {
let key = normalizeKey(fileName);
delete files[key];
}

View File

@@ -7,7 +7,7 @@ module ts {
get(fileName: string): T;
set(fileName: string, value: T): void;
contains(fileName: string): boolean;
delete(fileName: string): void;
remove(fileName: string): void;
forEachValue(f: (v: T) => void): void;
}

View File

@@ -1990,7 +1990,7 @@ module ts {
Debug.assert(entry.languageServiceRefCount >= 0);
if (entry.languageServiceRefCount === 0) {
bucket.delete(fileName);
bucket.remove(fileName);
}
}