18 references to CancellationToken
Microsoft.CodeAnalysis.Features (18)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (15)
86
documentWithMovedType = await removeUnnecessaryImports.RemoveUnnecessaryImportsAsync(documentWithMovedType,
CancellationToken
).ConfigureAwait(false);
89
documentWithMovedTypeId, await documentWithMovedType.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false));
92
var rootWithMovedType = await documentWithMovedType.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false);
102
CancellationToken
).ConfigureAwait(false);
105
sourceDocumentId, await sourceDocument.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false));
120
var documentEditor = await DocumentEditor.CreateAsync(document,
CancellationToken
).ConfigureAwait(false);
169
newDocument, FileName, document, this.
CancellationToken
).ConfigureAwait(false);
179
directives.AddIfNotNull(syntaxFacts.GetMatchingDirective(trivia.GetStructure()!, this.
CancellationToken
));
180
foreach (var directive in syntaxFacts.GetMatchingConditionalDirectives(trivia.GetStructure()!, this.
CancellationToken
))
206
var documentFormattingOptions = await document.GetDocumentFormattingOptionsAsync(
CancellationToken
).ConfigureAwait(false);
217
var lineFormattingOptions = await document.GetLineFormattingOptionsAsync(
CancellationToken
).ConfigureAwait(false);
235
var documentEditor = await DocumentEditor.CreateAsync(sourceDocument,
CancellationToken
).ConfigureAwait(false);
247
updatedDocument = await AddFileBannerHelpers.CopyBannerAsync(updatedDocument, sourceDocument.FilePath, sourceDocument, this.
CancellationToken
).ConfigureAwait(false);
313
var symbol = (INamedTypeSymbol)SemanticDocument.SemanticModel.GetRequiredDeclaredSymbol(node,
CancellationToken
);
315
if (!semanticFacts.IsPartial(symbol,
CancellationToken
))
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
46
var editor = await DocumentEditor.CreateAsync(SemanticDocument.Document, this.
CancellationToken
).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameTypeEditor.cs (2)
30
var symbol = SemanticDocument.SemanticModel.GetRequiredDeclaredSymbol(this.TypeDeclaration,
CancellationToken
);
31
return await Renamer.RenameSymbolAsync(solution, symbol, new SymbolRenameOptions(), FileName,
CancellationToken
).ConfigureAwait(false);