64 references to RemoveNode
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (6)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (34)
Syntax\SyntaxNodeTests.cs (32)
2459var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2474var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2490var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2507var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2528var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2547var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2563var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2579var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2595var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2615var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2632var expr2 = expr.RemoveNode(n, SyntaxRemoveOptions.KeepExteriorTrivia);
2646var expr2 = expr.RemoveNode(n, SyntaxRemoveOptions.KeepExteriorTrivia);
2660var expr2 = expr.RemoveNode(n, SyntaxRemoveOptions.KeepExteriorTrivia);
2674var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2688var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2706var m2 = m.RemoveNode(m.Body, SyntaxRemoveOptions.KeepExteriorTrivia);
2739var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepExteriorTrivia | SyntaxRemoveOptions.KeepUnbalancedDirectives);
2774var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepUnbalancedDirectives);
2814var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepDirectives);
2846var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
2863var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
2879var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine | SyntaxRemoveOptions.KeepDirectives);
2896var cu2 = cu.RemoveNode(cu, SyntaxRemoveOptions.KeepEndOfLine);
2938var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
2979var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3023var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3065var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepTrailingTrivia);
3107var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3147var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3190var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3231var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepLeadingTrivia);
3255var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine | SyntaxRemoveOptions.KeepDirectives);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Microsoft.VisualStudio.LanguageServices.VisualBasic (10)
CodeModel\VisualBasicCodeModelService.vb (10)
1331Dim newDeclarator = declarator.RemoveNode(node, SyntaxRemoveOptions.KeepEndOfLine).WithAdditionalAnnotations(Formatter.Annotation)
1344Dim newDeclaration = declaration.RemoveNode(node, SyntaxRemoveOptions.KeepEndOfLine).WithAdditionalAnnotations(Formatter.Annotation)
1364Dim newAttributeList = attributeList.RemoveNode(node, SyntaxRemoveOptions.KeepEndOfLine)
1372Dim newArgumentList = argumentList.RemoveNode(node, SyntaxRemoveOptions.KeepEndOfLine).WithAdditionalAnnotations(Formatter.Annotation)
1379Dim newParameterList = parameterList.RemoveNode(node, SyntaxRemoveOptions.KeepEndOfLine).WithAdditionalAnnotations(Formatter.Annotation)
3541parameter = parameter.RemoveNode(parameter.Default, SyntaxRemoveOptions.KeepNoTrivia)
3560variableDeclarator = variableDeclarator.RemoveNode(variableDeclarator.Initializer, SyntaxRemoveOptions.KeepExteriorTrivia)
3582enumMemberDeclaration = enumMemberDeclaration.RemoveNode(enumMemberDeclaration.Initializer, SyntaxRemoveOptions.KeepExteriorTrivia)
4301Dim newInheritsStatement = inheritsStatement.RemoveNode(inheritsType, SyntaxRemoveOptions.KeepEndOfLine)
4373Dim newImplementsStatement = implementsStatement.RemoveNode(inheritsType, SyntaxRemoveOptions.KeepEndOfLine)