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

This commit is contained in:
Vladimir Matveev 2015-06-04 11:18:05 -07:00
parent b4f1df2afa
commit 522248a042
3 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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