21 references to RemoveNodes
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
325var newRoot = gen.RemoveNodes(root, unusedImports);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
617return RemoveNodes(method, method.ConstraintClauses); 2958=> RemoveNodes(declaration, GetSubDeclarations(declaration).Skip(index).Take(count));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
CodeGeneration\SyntaxGeneratorTests.cs (3)
2643=> Assert.Equal(0, Generator.GetNamespaceImports(Generator.RemoveNodes(declaration, Generator.GetNamespaceImports(declaration))).Count); 2851=> Assert.Equal(0, Generator.GetMembers(Generator.RemoveNodes(declaration, Generator.GetMembers(declaration))).Count); 3692Generator.RemoveNodes(classBI, baseListBI),
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
CodeGeneration\SyntaxGeneratorTests.vb (11)
3194Assert.Equal(0, Generator.GetMembers(Generator.RemoveNodes(declaration, Generator.GetMembers(declaration))).Count) 3268Generator.RemoveNodes(classC, {baseList(1), baseList(2)}), 3275Generator.RemoveNodes(classC, baseList), 3688Generator.RemoveNodes(declC, {declX, declY}), 3696Generator.RemoveNodes(declC, {declX, declZ}), 3704Generator.RemoveNodes(declC, {declY, declZ}), 3712Generator.RemoveNodes(declC, {declX, declY, declZ}), 3825Generator.RemoveNodes(declC, {declX, declY}), 3832Generator.RemoveNodes(declC, {declX, declZ}), 3839Generator.RemoveNodes(declC, {declY, declZ}), 3846Generator.RemoveNodes(declC, {declX, declY, declZ}),
Microsoft.CodeAnalysis.Workspaces (3)
Editing\SyntaxGenerator.cs (2)
1048=> RemoveNodes(declaration, GetAttributes(declaration).Concat(GetReturnAttributes(declaration))); 1081=> RemoveNodes(declaration, GetTypeInheritance(declaration));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
325var newRoot = gen.RemoveNodes(root, unusedImports);
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
547libraryImportSyntax = generator.RemoveNodes(libraryImportSyntax, argumentsToRemove);