1 write to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (1)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
58
_cancellationToken
= cancellationToken;
37 references to _cancellationToken
Microsoft.CodeAnalysis.Workspaces (37)
Rename\ConflictEngine\ConflictResolver.Session.cs (37)
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
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
329
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
354
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
355
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
357
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
358
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
359
var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
382
newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
450
unprocessedDocumentIdWithPotentialDeclarationConflicts, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
451
var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(
_cancellationToken
).ConfigureAwait(false);
453
unprocessedDocumentIdWithPotentialDeclarationConflicts, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
454
var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(
_cancellationToken
).ConfigureAwait(false);
468
projectId, renamedSymbolInNewSolution, renameSymbol, referencedSymbols, conflictResolution, reverseMappedLocations,
_cancellationToken
).ConfigureAwait(false);
523
.SelectAsArrayAsync(static (symbol, solution, cancellationToken) => GetSymbolLocationAsync(solution, symbol, cancellationToken), solution,
_cancellationToken
).ConfigureAwait(false))
568
var newLocation = await GetSymbolLocationAsync(solution, symbol,
_cancellationToken
).ConfigureAwait(false);
588
var overridingSymbol = await SymbolFinder.FindSymbolAtPositionAsync(solution.GetRequiredDocument(newLocation.SourceTree), newLocation.SourceSpan.Start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
639
var newReferencedSymbols = RenameUtilities.GetSymbolsTouchingPosition(tokenOrNode.Span.Start, newDocumentSemanticModel, newDocument.Project.Solution.Services,
_cancellationToken
);
645
var invocationReferencedSymbols = SymbolsForEnclosingInvocationExpressionWorker((SyntaxNode)tokenOrNode!, newDocumentSemanticModel,
_cancellationToken
);
672
_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
673
var newSymbol = await SymbolFinder.FindSymbolAtPositionAsync(document, start, cancellationToken:
_cancellationToken
).ConfigureAwait(false);
732
var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document,
_cancellationToken
).ConfigureAwait(false);
778
_cancellationToken
.ThrowIfCancellationRequested();
781
documentId, includeSourceGenerated: true,
_cancellationToken
).ConfigureAwait(false);
782
var semanticModel = await document.GetRequiredSemanticModelAsync(
_cancellationToken
).ConfigureAwait(false);
783
var originalSyntaxRoot = await semanticModel.SyntaxTree.GetRootAsync(
_cancellationToken
).ConfigureAwait(false);
823
_cancellationToken
);
836
partiallyRenamedSolution = await MutableConflictResolution.WithDocumentSyntaxRootAsync(partiallyRenamedSolution, documentId, newRoot,
_cancellationToken
).ConfigureAwait(false);