65 references to RemoveNode
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixAction.cs (1)
105documentEditor.RemoveNode(attributeSyntax);
ApiActionsDoNotRequireExplicitModelValidationCodeFixProvider.cs (1)
58editor.RemoveNode(ifBlockSyntax);
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
45editor.RemoveNode(node);
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
86editor.RemoveNode(declarator);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
94editor.RemoveNode(state.DeclarationStatement); 108editor.RemoveNode(state.DeclarationStatement);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (16)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
95editor.RemoveNode(declaratorToRemoveNode);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (8)
133documentEditor.RemoveNode(property); 151documentEditor.RemoveNode(constructor); 167documentEditor.RemoveNode(constructor); 214documentEditor.RemoveNode(equalsOp); 215documentEditor.RemoveNode(notEqualsOp); 227documentEditor.RemoveNode(method); 232documentEditor.RemoveNode(method); 238documentEditor.RemoveNode(method);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
190editor.RemoveNode(declarator);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
92editor.RemoveNode(match.Node);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
69editor.RemoveNode(match.Node);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
72editor.RemoveNode(localDeclaration);
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
54editor.RemoveNode(ifStatement);
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
54editor.RemoveNode(firstAssignmentStatement); 55editor.RemoveNode(secondAssignmentStatement);
Microsoft.CodeAnalysis.CSharp.Features (22)
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (1)
128editor.RemoveNode(nodeToRemoveIfFollowedByReturn);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (3)
247mainDocumentEditor.RemoveNode(parameterList); 260mainDocumentEditor.RemoveNode(attributeList); 279mainDocumentEditor.RemoveNode(initializer);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
115editor.RemoveNode(typeDeclaration);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
37=> editor.RemoveNode(setMethodDeclaration);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
95editor.RemoveNode(declaratorToRemoveNode);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (8)
133documentEditor.RemoveNode(property); 151documentEditor.RemoveNode(constructor); 167documentEditor.RemoveNode(constructor); 214documentEditor.RemoveNode(equalsOp); 215documentEditor.RemoveNode(notEqualsOp); 227documentEditor.RemoveNode(method); 232documentEditor.RemoveNode(method); 238documentEditor.RemoveNode(method);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
190editor.RemoveNode(declarator);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
92editor.RemoveNode(match.Node);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
69editor.RemoveNode(match.Node);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpIsAndCastCheckCodeFixProvider.cs (1)
72editor.RemoveNode(localDeclaration);
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
54editor.RemoveNode(ifStatement);
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (2)
54editor.RemoveNode(firstAssignmentStatement); 55editor.RemoveNode(secondAssignmentStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SymbolEditorTests.cs (5)
623var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.RemoveNode(d)); 653var newSymbol = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbol, (e, d) => e.RemoveNode(d)); 682var newSymbol = (INamedTypeSymbol)await editor.EditAllDeclarationsAsync(symbol, (e, d) => e.RemoveNode(d)); 718var newSymbolX = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolX, (e, d) => e.RemoveNode(d)); 725var newSymbolY = (INamedTypeSymbol)await editor.EditOneDeclarationAsync(symbolY, (e, d) => e.RemoveNode(d));
Microsoft.CodeAnalysis.Features (9)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Attribute.cs (1)
71editor.RemoveNode(attributeNode);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
345calleeDocumentEditor.RemoveNode(calleeMethodNode);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
648editor.RemoveNode(localDeclaration);
PullMemberUp\MembersPuller.cs (3)
130originalMemberEditor.RemoveNode(originalMemberEditor.Generator.GetDeclaration(declaration)); 255editor.RemoveNode(eventDeclaration); 341originalMemberEditor.RemoveNode(originalMemberEditor.Generator.GetDeclaration(syntax));
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
130editor.RemoveNode(secondIfOrElseIf);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
45editor.RemoveNode(node);
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
86editor.RemoveNode(declarator);
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (1)
34editor.RemoveNode(methodOrBlock)
SplitOrMergeIfStatements\VisualBasicIfLikeStatementGenerator.vb (1)
197editor.RemoveNode(elseIfClause)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
94editor.RemoveNode(state.DeclarationStatement); 108editor.RemoveNode(state.DeclarationStatement);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Editing\SyntaxEditorTests.cs (2)
78editor.RemoveNode(fieldX); 180editor.RemoveNode(fieldX);
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
121editor.RemoveNode(member);