Fix #9843. IScriptSnapshot can return undefined

This commit is contained in:
Herrington Darkholme
2016-07-21 10:01:12 +08:00
parent 729464dc23
commit 1b07fbb222

View File

@@ -94,7 +94,7 @@ namespace ts {
* change range cannot be determined. However, in that case, incremental parsing will
* not happen and the entire document will be re - parsed.
*/
getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange;
getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange | undefined;
/** Releases all resources held by this script snapshot */
dispose?(): void;