11 references to TypeDeclaration
Microsoft.CodeAnalysis.Features (11)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (6)
146
var leadingTrivia = this.
TypeDeclaration
.GetLeadingTrivia().ToSet();
189
documentEditor.ReplaceNode(this.
TypeDeclaration
,
244
documentEditor.RemoveNode(this.
TypeDeclaration
, SyntaxRemoveOptions.KeepUnbalancedDirectives);
264
spine.AddRange(this.
TypeDeclaration
.GetAncestors());
269
.Where(n => FilterToTopLevelMembers(n, this.
TypeDeclaration
)).ToSet();
309
var typeChain = this.
TypeDeclaration
.Ancestors().OfType<TTypeDeclarationSyntax>();
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (4)
32
return
TypeDeclaration
.Parent is TNamespaceDeclarationSyntax namespaceDeclaration
47
editor.RemoveNode(this.
TypeDeclaration
, SyntaxRemoveOptions.KeepNoTrivia);
50
var index = childNodes.IndexOf(this.
TypeDeclaration
);
56
var newNamespaceDeclaration = generator.NamespaceDeclaration(name, WithElasticTrivia(this.
TypeDeclaration
)).WithAdditionalAnnotations(NamespaceScopeMovedAnnotation);
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameTypeEditor.cs (1)
30
var symbol = SemanticDocument.SemanticModel.GetRequiredDeclaredSymbol(this.
TypeDeclaration
, CancellationToken);