mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Update comment.
This commit is contained in:
parent
6717c79537
commit
df13b8ffd1
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user