1 write to State
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
29
State
= state;
18 references to State
Microsoft.CodeAnalysis.Features (18)
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
39
protected SemanticDocument SemanticDocument =>
State
.SemanticDocument;
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (13)
83
var documentWithMovedTypeFormattingOptions = await documentWithMovedType.GetSyntaxFormattingOptionsAsync(
State
.FallbackOptions, CancellationToken).ConfigureAwait(false);
102
var sourceDocumentFormattingOptions = await sourceDocument.GetSyntaxFormattingOptionsAsync(
State
.FallbackOptions, 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);
201
documentEditor.RemoveNode(
State
.TypeNode, SyntaxRemoveOptions.KeepUnbalancedDirectives);
220
spine.AddRange(
State
.TypeNode.GetAncestors());
225
.Where(n => FilterToTopLevelMembers(n,
State
.TypeNode)).ToSet();
267
var semanticFacts =
State
.SemanticDocument.Document.GetRequiredLanguageService<ISemanticFactsService>();
268
var typeChain =
State
.TypeNode.Ancestors().OfType<TTypeDeclarationSyntax>();
272
var symbol = (ITypeSymbol?)
State
.SemanticDocument.SemanticModel.GetDeclaredSymbol(node, CancellationToken);
292
documentEditor.ReplaceNode(
State
.TypeNode,
306
var syntaxFacts =
State
.SemanticDocument.Document.GetRequiredLanguageService<ISyntaxFactsService>();
307
var bannerService =
State
.SemanticDocument.Document.GetRequiredLanguageService<IFileBannerFactsService>();
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (2)
33
var node =
State
.TypeNode;
34
var documentToEdit =
State
.SemanticDocument.Document;
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameTypeEditor.cs (2)
31
var symbol =
State
.SemanticDocument.SemanticModel.GetDeclaredSymbol(
State
.TypeNode, CancellationToken);