11 references to TypeDeclaration
Microsoft.CodeAnalysis.Features (11)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (6)
146var leadingTrivia = this.TypeDeclaration.GetLeadingTrivia().ToSet(); 189documentEditor.ReplaceNode(this.TypeDeclaration, 244documentEditor.RemoveNode(this.TypeDeclaration, SyntaxRemoveOptions.KeepUnbalancedDirectives); 264spine.AddRange(this.TypeDeclaration.GetAncestors()); 269.Where(n => FilterToTopLevelMembers(n, this.TypeDeclaration)).ToSet(); 309var 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);