Merge pull request #3383 from Microsoft/delete2remove
rename 'FileMap.delete' to 'FileMap.remove'
This commit is contained in:
commit
ed7b07dce1
3 changed files with 4 additions and 4 deletions
|
@ -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