Update comment.

This commit is contained in:
Cyrus Najmabadi committed 2015-06-18 11:43:16 -07:00
1 parent 6717c79537
commit df13b8ffd1
1 file changed
+3
+3
View File
@@ -11684,6 +11684,9 @@ namespace ts {
var cancellationToken: CancellationTokenObject;
function getDiagnostics(sourceFile: SourceFile, ct: CancellationTokenObject): Diagnostic[] {
try {
// Record the cancellation token so it can be checked later on during checkSourceElement.
// Do this in a finally block so we can ensure that it gets reset back to nothing after
// this call is done.
cancellationToken = ct;
return getDiagnosticsWorker(sourceFile);
}