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