1 write to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
63
_cancellationToken
= cancellationToken;
27 references to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (27)
Rename\ConflictEngine\ConflictResolver.Session.cs (27)
103
var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(
_cancellationToken
).ToList();
205
conflictResolution.UpdateCurrentSolution(await renamedSpansTracker.SimplifyAsync(conflictResolution.CurrentSolution, documentsByProject, _replacementTextValid, _renameAnnotations, FallbackOptions,
_cancellationToken
).ConfigureAwait(false));
207
intermediateSolution, documentsByProject, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false);
221
await conflictResolution.CurrentSolution.GetRequiredDocument(_documentIdOfRenameSymbolDeclaration).GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false),
225
_cancellationToken
).ConfigureAwait(false);
273
documentIdErrorStateLookup.Add(documentId, await originalDoc.HasAnyErrorsAsync(
_cancellationToken
).ConfigureAwait(false));
292
await conflictResolution.CurrentSolution.GetRequiredDocument(documentId).VerifyNoErrorsAsync("Rename introduced errors in error-free code",
_cancellationToken
, ignoreErrorCodes).ConfigureAwait(false);
324
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
350
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
352
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
353
var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
376
newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
442
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
444
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
458
renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations,
_cancellationToken
).ConfigureAwait(false);
474
var compilation = await currentProject.GetRequiredCompilationAsync(
_cancellationToken
).ConfigureAwait(false);
535
var newLocationTasks = newReferencedSymbols.Select(async symbol => await GetSymbolLocationAsync(solution, symbol,
_cancellationToken
).ConfigureAwait(false));
577
var newLocation = await GetSymbolLocationAsync(solution, symbol,
_cancellationToken
).ConfigureAwait(false);
598
var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
649
var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services,
_cancellationToken
);
655
var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel,
_cancellationToken
);
680
var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
739
var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document,
_cancellationToken
).ConfigureAwait(false);
783
_cancellationToken
.ThrowIfCancellationRequested();
786
var semanticModel = await document.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
787
var originalSyntaxRoot = await semanticModel.SyntaxTree.GetRootAsync(
_cancellationToken
).ConfigureAwait(false);
827
_cancellationToken
);