18 references to CancellationToken
Microsoft.CodeAnalysis.Features (18)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (15)
85
documentWithMovedType = await removeUnnecessaryImports.RemoveUnnecessaryImportsAsync(documentWithMovedType,
CancellationToken
).ConfigureAwait(false);
88
documentWithMovedTypeId, await documentWithMovedType.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false));
91
var rootWithMovedType = await documentWithMovedType.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false);
101
CancellationToken
).ConfigureAwait(false);
104
sourceDocumentId, await sourceDocument.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false));
119
var documentEditor = await DocumentEditor.CreateAsync(document,
CancellationToken
).ConfigureAwait(false);
168
newDocument, FileName, document, this.
CancellationToken
).ConfigureAwait(false);
178
directives.AddIfNotNull(syntaxFacts.GetMatchingDirective(trivia.GetStructure()!, this.
CancellationToken
));
179
foreach (var directive in syntaxFacts.GetMatchingConditionalDirectives(trivia.GetStructure()!, this.
CancellationToken
))
205
var documentFormattingOptions = await document.GetDocumentFormattingOptionsAsync(
CancellationToken
).ConfigureAwait(false);
216
var lineFormattingOptions = await document.GetLineFormattingOptionsAsync(
CancellationToken
).ConfigureAwait(false);
234
var documentEditor = await DocumentEditor.CreateAsync(sourceDocument,
CancellationToken
).ConfigureAwait(false);
246
updatedDocument = await AddFileBannerHelpers.CopyBannerAsync(updatedDocument, sourceDocument.FilePath, sourceDocument, this.
CancellationToken
).ConfigureAwait(false);
312
var symbol = (INamedTypeSymbol?)State.SemanticDocument.SemanticModel.GetDeclaredSymbol(node,
CancellationToken
);
314
if (!semanticFacts.IsPartial(symbol,
CancellationToken
))
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
34
return await GetNamespaceScopeChangedSolutionAsync(namespaceDeclaration, node, documentToEdit,
CancellationToken
).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameTypeEditor.cs (2)
27
var symbol = State.SemanticDocument.SemanticModel.GetDeclaredSymbol(State.TypeNode,
CancellationToken
);
28
return await Renamer.RenameSymbolAsync(solution, symbol, new SymbolRenameOptions(), FileName,
CancellationToken
).ConfigureAwait(false);