1 write to CancellationToken
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
32
CancellationToken
= cancellationToken;
16 references to CancellationToken
Microsoft.CodeAnalysis.Features (16)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (13)
83
var documentWithMovedTypeFormattingOptions = await documentWithMovedType.GetSyntaxFormattingOptionsAsync(State.FallbackOptions,
CancellationToken
).ConfigureAwait(false);
89
documentWithMovedType = await removeUnnecessaryImports.RemoveUnnecessaryImportsAsync(documentWithMovedType, documentWithMovedTypeFormattingOptions,
CancellationToken
).ConfigureAwait(false);
92
documentWithMovedTypeId, await documentWithMovedType.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false));
95
var rootWithMovedType = await documentWithMovedType.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false);
102
var sourceDocumentFormattingOptions = await sourceDocument.GetSyntaxFormattingOptionsAsync(State.FallbackOptions,
CancellationToken
).ConfigureAwait(false);
107
CancellationToken
).ConfigureAwait(false);
110
sourceDocumentId, await sourceDocument.GetRequiredSyntaxRootAsync(
CancellationToken
).ConfigureAwait(false));
126
var documentEditor = await DocumentEditor.CreateAsync(document,
CancellationToken
).ConfigureAwait(false);
165
var documentFormattingOptions = await document.GetDocumentFormattingOptionsAsync(State.FallbackOptions,
CancellationToken
).ConfigureAwait(false);
176
var lineFormattingOptions = await document.GetLineFormattingOptionsAsync(State.FallbackOptions,
CancellationToken
).ConfigureAwait(false);
194
var documentEditor = await DocumentEditor.CreateAsync(sourceDocument,
CancellationToken
).ConfigureAwait(false);
272
var symbol = (ITypeSymbol?)State.SemanticDocument.SemanticModel.GetDeclaredSymbol(node,
CancellationToken
);
274
if (!semanticFacts.IsPartial(symbol,
CancellationToken
))
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
38
return await GetNamespaceScopeChangedSolutionAsync(namespaceDeclaration, node, documentToEdit,
CancellationToken
).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameTypeEditor.cs (2)
31
var symbol = State.SemanticDocument.SemanticModel.GetDeclaredSymbol(State.TypeNode,
CancellationToken
);
32
return await Renamer.RenameSymbolAsync(solution, symbol, new SymbolRenameOptions(), FileName,
CancellationToken
).ConfigureAwait(false);