1 write to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
58
_cancellationToken
= cancellationToken;
34 references to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (34)
Rename\ConflictEngine\ConflictResolver.Session.cs (34)
97
var topologicallySortedProjects = dependencyGraph.GetTopologicallySortedProjects(
_cancellationToken
).ToList();
201
conflictResolution.CurrentSolution, documentsByProject, _replacementTextValid, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false));
203
intermediateSolution, documentsByProject, _renameAnnotations,
_cancellationToken
).ConfigureAwait(false);
214
_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
215
var semanticModel = await declarationDocument.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
224
_cancellationToken
).ConfigureAwait(false);
272
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
273
documentIdErrorStateLookup.Add(documentId, await originalDoc.HasAnyErrorsAsync(
_cancellationToken
).ConfigureAwait(false));
295
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
296
await changeDoc.VerifyNoErrorsAsync("Rename introduced errors in error-free code",
_cancellationToken
, ignoreErrorCodes).ConfigureAwait(false);
328
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
353
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
354
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
356
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
357
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
358
var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
381
newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
446
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
448
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
462
projectId, renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations,
_cancellationToken
).ConfigureAwait(false);
517
.SelectAsArrayAsync(static (symbol, solution, cancellationToken) => GetSymbolLocationAsync(solution, symbol, cancellationToken), solution,
_cancellationToken
).ConfigureAwait(false))
562
var newLocation = await GetSymbolLocationAsync(solution, symbol,
_cancellationToken
).ConfigureAwait(false);
582
var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
633
var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services,
_cancellationToken
);
639
var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel,
_cancellationToken
);
664
_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
665
var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
724
var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document,
_cancellationToken
).ConfigureAwait(false);
770
_cancellationToken
.ThrowIfCancellationRequested();
773
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
774
var semanticModel = await document.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
775
var originalSyntaxRoot = await semanticModel.SyntaxTree.GetRootAsync(
_cancellationToken
).ConfigureAwait(false);
815
_cancellationToken
);
828
partiallyRenamedSolution = await MutableConflictResolution.WithDocumentSyntaxRootAsync(partiallyRenamedSolution, documentId, newRoot,
_cancellationToken
).ConfigureAwait(false);