Merge pull request #9853 from HerringtonDarkholme/master

Fix #9843. IScriptSnapshot can return undefined
This commit is contained in:
Daniel Rosenwasser 2016-07-20 22:22:35 -07:00 committed by GitHub
commit a2f45e9599

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;