rename 'FileMap.delete' to 'FileMap.remove'
This commit is contained in:
parent
b4f1df2afa
commit
522248a042
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1990,7 +1990,7 @@ module ts {
|
|||
|
||||
Debug.assert(entry.languageServiceRefCount >= 0);
|
||||
if (entry.languageServiceRefCount === 0) {
|
||||
bucket.delete(fileName);
|
||||
bucket.remove(fileName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue