mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update comment.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user