Merge pull request #30107 from Microsoft/applyChangesToOpenFiles

Add UpdateOpen to request
This commit is contained in:
Sheetal Nandi
2019-03-05 15:54:34 -08:00
committed by GitHub
10 changed files with 368 additions and 51 deletions
+15
View File
@@ -1173,6 +1173,21 @@ namespace ts {
}};
}
export function arrayReverseIterator<T>(array: ReadonlyArray<T>): Iterator<T> {
let i = array.length;
return {
next: () => {
if (i === 0) {
return { value: undefined as never, done: true };
}
else {
i--;
return { value: array[i], done: false };
}
}
};
}
/**
* Stable sort of an array. Elements equal to each other maintain their relative position in the array.
*/