1 write to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
62
_cancellationToken
= cancellationToken;
27 references to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (27)
Rename\ConflictEngine\ConflictResolver.Session.cs (27)
101
var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(
_cancellationToken
).ToList();
206
conflictResolution.UpdateCurrentSolution(await renamedSpansTracker.SimplifyAsync(conflictResolution.CurrentSolution, documentsByProject, _replacementTextValid, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false));
208
intermediateSolution, documentsByProject, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false);
222
await conflictResolution.CurrentSolution.GetRequiredDocument(_documentIdOfRenameSymbolDeclaration).GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false),
226
_cancellationToken
).ConfigureAwait(false);
274
documentIdErrorStateLookup.Add(documentId, await originalDoc.HasAnyErrorsAsync(
_cancellationToken
).ConfigureAwait(false));
295
await conflictResolution.CurrentSolution.GetRequiredDocument(documentId).VerifyNoErrorsAsync("Rename introduced errors in error-free code",
_cancellationToken
, ignoreErrorCodes).ConfigureAwait(false);
327
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
353
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
355
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
356
var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
379
newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
445
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
447
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
461
renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations,
_cancellationToken
).ConfigureAwait(false);
477
var compilation = await currentProject.GetRequiredCompilationAsync(
_cancellationToken
).ConfigureAwait(false);
542
var newLocationTasks = newReferencedSymbols.Select(async symbol => await GetSymbolLocationAsync(solution, symbol,
_cancellationToken
).ConfigureAwait(false));
584
var newLocation = await GetSymbolLocationAsync(solution, symbol,
_cancellationToken
).ConfigureAwait(false);
605
var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
656
var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services,
_cancellationToken
);
662
var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel,
_cancellationToken
);
687
var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
746
var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document,
_cancellationToken
).ConfigureAwait(false);
790
_cancellationToken
.ThrowIfCancellationRequested();
793
var semanticModel = await document.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
794
var originalSyntaxRoot = await semanticModel.SyntaxTree.GetRootAsync(
_cancellationToken
).ConfigureAwait(false);
834
_cancellationToken
);