1 write to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
61
_cancellationToken
= cancellationToken;
27 references to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (27)
Rename\ConflictEngine\ConflictResolver.Session.cs (27)
100
var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(
_cancellationToken
).ToList();
202
conflictResolution.UpdateCurrentSolution(await renamedSpansTracker.SimplifyAsync(conflictResolution.CurrentSolution, documentsByProject, _replacementTextValid, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false));
204
intermediateSolution, documentsByProject, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false);
218
await conflictResolution.CurrentSolution.GetRequiredDocument(_documentIdOfRenameSymbolDeclaration).GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false),
222
_cancellationToken
).ConfigureAwait(false);
270
documentIdErrorStateLookup.Add(documentId, await originalDoc.HasAnyErrorsAsync(
_cancellationToken
).ConfigureAwait(false));
291
await conflictResolution.CurrentSolution.GetRequiredDocument(documentId).VerifyNoErrorsAsync("Rename introduced errors in error-free code",
_cancellationToken
, ignoreErrorCodes).ConfigureAwait(false);
323
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
349
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
351
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
352
var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
375
newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
441
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
443
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
457
renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations,
_cancellationToken
).ConfigureAwait(false);
473
var compilation = await currentProject.GetRequiredCompilationAsync(
_cancellationToken
).ConfigureAwait(false);
538
.Select(symbol => GetSymbolLocation(solution, symbol,
_cancellationToken
))
582
var newLocation = GetSymbolLocation(solution, symbol,
_cancellationToken
);
602
var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
653
var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services,
_cancellationToken
);
659
var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel,
_cancellationToken
);
684
var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
743
var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document,
_cancellationToken
).ConfigureAwait(false);
787
_cancellationToken
.ThrowIfCancellationRequested();
790
var semanticModel = await document.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
791
var originalSyntaxRoot = await semanticModel.SyntaxTree.GetRootAsync(
_cancellationToken
).ConfigureAwait(false);
831
_cancellationToken
);