65 references to RemoveNode
Microsoft.AspNetCore.App.CodeFixes (1)
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)
2482var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2497var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2513var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2530var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2551var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2570var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2586var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2602var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2618var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2638var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2655var expr2 = expr.RemoveNode(n, SyntaxRemoveOptions.KeepExteriorTrivia);
2669var expr2 = expr.RemoveNode(n, SyntaxRemoveOptions.KeepExteriorTrivia);
2683var expr2 = expr.RemoveNode(n, SyntaxRemoveOptions.KeepExteriorTrivia);
2697var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepNoTrivia);
2711var expr2 = expr.RemoveNode(b, SyntaxRemoveOptions.KeepExteriorTrivia);
2729var m2 = m.RemoveNode(m.Body, SyntaxRemoveOptions.KeepExteriorTrivia);
2762var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepExteriorTrivia | SyntaxRemoveOptions.KeepUnbalancedDirectives);
2797var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepUnbalancedDirectives);
2837var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepDirectives);
2869var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
2886var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
2902var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine | SyntaxRemoveOptions.KeepDirectives);
2919var cu2 = cu.RemoveNode(cu, SyntaxRemoveOptions.KeepEndOfLine);
2961var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3002var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3046var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3088var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepTrailingTrivia);
3130var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3170var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3213var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepEndOfLine);
3254var cu2 = cu.RemoveNode(m, SyntaxRemoveOptions.KeepLeadingTrivia);
3278var 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)