Changed name of 'reduce' method added to FileSet

This commit is contained in:
Ron Buckton
2015-12-08 10:57:04 -08:00
parent c3c3bca6fa
commit bf9af46e5a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -711,8 +711,8 @@ namespace ts {
}
return {
fileNames: wildcardFiles.reduce(addFileToOutput, literalFiles.reduce(addFileToOutput, [])),
wildcardDirectories: wildcardDirectories.reduce<Map<WatchDirectoryFlags>>(addDirectoryToOutput, {}),
fileNames: wildcardFiles.reduceProperties(addFileToOutput, literalFiles.reduceProperties(addFileToOutput, [])),
wildcardDirectories: wildcardDirectories.reduceProperties<Map<WatchDirectoryFlags>>(addDirectoryToOutput, {}),
};
}
+2 -2
View File
@@ -25,7 +25,7 @@ namespace ts {
contains,
remove,
forEachValue: forEachValueInMap,
reduce,
reduceProperties: reducePropertiesInMap,
clear,
mergeFrom
};
@@ -36,7 +36,7 @@ namespace ts {
}
}
function reduce<U>(callback: (memo: U, value: T, key: Path) => U, initial: U) {
function reducePropertiesInMap<U>(callback: (memo: U, value: T, key: Path) => U, initial: U) {
return reduceProperties(files, callback, initial);
}
+1 -1
View File
@@ -14,7 +14,7 @@ namespace ts {
remove(fileName: Path): void;
forEachValue(f: (key: Path, v: T) => void): void;
reduce<U>(f: (memo: U, value: T, key: Path) => U, initial: U): U;
reduceProperties<U>(f: (memo: U, value: T, key: Path) => U, initial: U): U;
mergeFrom(other: FileMap<T>): void;
clear(): void;
}