172 references to ReplaceNode
ILLink.CodeFixProvider (1)
DynamicallyAccessedMembersCodeFixProvider.cs (1)
147 editor.ReplaceNode (targetNode, nodeWithAttribute);
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
527docEditor.ReplaceNode(invocationExpression, call);
Microsoft.AspNetCore.App.CodeFixes (1)
Kestrel\ListenOnIPv6AnyFixer.cs (1)
64editor.ReplaceNode(
Microsoft.CodeAnalysis.CodeStyle.Fixes (23)
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
55editor.ReplaceNode(nodeToReplace, nameOfSyntax);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
70editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
54editor.ReplaceNode(node, generator.WithModifiers(node, fixedModifiers));
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
40editor.ReplaceNode(switchNode, newSwitchNode);
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (2)
51editor.ReplaceNode(editor.OriginalRoot, newRoot); 55editor.ReplaceNode(switchNode, newSwitchNode);
src\Analyzers\Core\CodeFixes\QualifyMemberAccess\AbstractQualifyMemberAccessCodeFixProvider.cs (1)
52editor.ReplaceNode(node, qualifiedAccess);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
201editor.ReplaceNode(returnSyntax, returnTaskCompletedTask);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
45editor.ReplaceNode(node, WithElasticTrailingTrivia(RewriteNode()));
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
339editor.ReplaceNode(root, newRoot);
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
78editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
47editor.ReplaceNode(node, editor.Generator.LiteralExpression(newDocCommentId).WithTriviaFrom(node));
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (1)
75editor.ReplaceNode(root, changedRoot);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
114editor.ReplaceNode( 146editor.ReplaceNode(localDeclaration, updatedLocalDeclaration);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
83editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
122editor.ReplaceNode( 231editor.ReplaceNode(nodeToBeReplaced, replacementNode ?? newWhenTrueStatement);
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
90editor.ReplaceNode(statement, newStatement);
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
82editor.ReplaceNode(methodBlock, updatedDecl);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
192editor.ReplaceNode(originalRoot, currentRoot);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
141editor.ReplaceNode( 171editor.ReplaceNode(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (38)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
111editor.ReplaceNode(node, node.WithLeadingTrivia(finalLeadingTrivia));
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
60editor.ReplaceNode(exprOrStatement, newBody); 80editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
73editor.ReplaceNode(container, updatedContainer);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
126documentEditor.ReplaceNode(property, property 194documentEditor.ReplaceNode(constructor, modifiedConstructor);
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
110editor.ReplaceNode(ifStatement, newStatement); 144editor.ReplaceNode(ifStatement, newStatement);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
158syntaxEditor.ReplaceNode(instanceReference.Syntax, IdentifierName("@this")); 162syntaxEditor.ReplaceNode(name, MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, IdentifierName("@this"), name));
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
140editor.ReplaceNode(memberDeclarator, generator.WithModifiers(memberDeclarator, newDeclarationModifiers));
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
93editor.ReplaceNode(statementToFix, newStatement);
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
60editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
87editor.ReplaceNode(statement, SyntaxFactory.Block());
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (3)
57editor.ReplaceNode( 64editor.ReplaceNode( 76editor.ReplaceNode(whereInvocation, whereMemberAccess.Expression);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
91editor.ReplaceNode(editor.OriginalRoot, subEditor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
87editor.ReplaceNode(ifStatement, newWhenTrueStatement);
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (1)
53editor.ReplaceNode(type, implicitType);
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (1)
62editor.ReplaceNode(verbatimInterpolated, interpolatedVerbatim);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
120editor.ReplaceNode(root, currentRoot); 162editor.ReplaceNode(localDeclaration, newLocalFunctionStatement);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
86editor.ReplaceNode(expression, IsPatternExpression((ExpressionSyntax)pattern.Target.Syntax, patternSyntax));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
129editor.ReplaceNode(comparison, condition.WithTriviaFrom(comparison));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
399documentEditor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
60editor.ReplaceNode(root, updatedRoot);
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (2)
103editor.ReplaceNode( 109editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
57editor.ReplaceNode(assignmentValue,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
66editor.ReplaceNode(localDeclarationStatement, tupleAssignmentStatement.WithTriviaFrom(localDeclarationStatement));
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
62editor.ReplaceNode(typeArgumentList, typeArgumentList.WithArguments(SeparatedList<TypeSyntax>(list)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (4)
67editor.ReplaceNode(catchDeclaration, catchDeclaration.WithIdentifier(default)); 94editor.ReplaceNode(declarationExpression, replacementNode); 110editor.ReplaceNode(isPatternExpression, replacementNode); 221_editor.ReplaceNode(_localDeclarationStatement, Block(_statementsBuilder));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (2)
65editor.ReplaceNode( 68editor.ReplaceNode(
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
43rootEditor.ReplaceNode(oldNode, newNode.WithAdditionalAnnotations(s_replacementNodeAnnotation));
Microsoft.CodeAnalysis.CSharp.Features (50)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
207editor.ReplaceNode(node, currentNode);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (2)
178editor.ReplaceNode(logicalAnd, logicalAnd.Right); 191editor.ReplaceNode(containingPattern, rewrittenPattern);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
270mainDocumentEditor.ReplaceNode(
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (2)
139editor.ReplaceNode( 146editor.ReplaceNode(
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
62editor.ReplaceNode(node, ((AssignmentExpressionSyntax)node).Right);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (3)
59editor.ReplaceNode(getMethodDeclaration, newProperty); 325editor.ReplaceNode(nameNode, newName.WithIdentifier(newName.Identifier.WithAdditionalAnnotations(annotation))); 384editor.ReplaceNode(nameNode, newName.WithIdentifier(newName.Identifier.WithAdditionalAnnotations(annotation)));
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (5)
288editor.ReplaceNode(variable.Initializer!.Value, Reduce(newStart)); 289editor.ReplaceNode(condition, Reduce(Invert(variable, condition, start))); 295editor.ReplaceNode(variable.Initializer!.Value, Reduce(start)); 296editor.ReplaceNode(condition, Reduce(Invert(variable, condition, end))); 303editor.ReplaceNode(after, InvertAfter(after));
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
111editor.ReplaceNode(node, node.WithLeadingTrivia(finalLeadingTrivia));
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (2)
60editor.ReplaceNode(exprOrStatement, newBody); 80editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAtStartCodeFixProvider.cs (1)
73editor.ReplaceNode(container, updatedContainer);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
126documentEditor.ReplaceNode(property, property 194documentEditor.ReplaceNode(constructor, modifiedConstructor);
src\Analyzers\CSharp\CodeFixes\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessCodeFixProvider.cs (2)
110editor.ReplaceNode(ifStatement, newStatement); 144editor.ReplaceNode(ifStatement, newStatement);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (2)
158syntaxEditor.ReplaceNode(instanceReference.Syntax, IdentifierName("@this")); 162syntaxEditor.ReplaceNode(name, MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression, IdentifierName("@this"), name));
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
140editor.ReplaceNode(memberDeclarator, generator.WithModifiers(memberDeclarator, newDeclarationModifiers));
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
93editor.ReplaceNode(statementToFix, newStatement);
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
60editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
87editor.ReplaceNode(statement, SyntaxFactory.Block());
src\Analyzers\CSharp\CodeFixes\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastCodeFixProvider.cs (3)
57editor.ReplaceNode( 64editor.ReplaceNode( 76editor.ReplaceNode(whereInvocation, whereMemberAccess.Expression);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
57editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
91editor.ReplaceNode(editor.OriginalRoot, subEditor.GetChangedRoot());
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
87editor.ReplaceNode(ifStatement, newWhenTrueStatement);
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseImplicitTypeCodeFixProvider.cs (1)
53editor.ReplaceNode(type, implicitType);
src\Analyzers\CSharp\CodeFixes\UseInterpolatedVerbatimString\CSharpUseInterpolatedVerbatimStringCodeFixProvider.cs (1)
62editor.ReplaceNode(verbatimInterpolated, interpolatedVerbatim);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (2)
120editor.ReplaceNode(root, currentRoot); 162editor.ReplaceNode(localDeclaration, newLocalFunctionStatement);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
86editor.ReplaceNode(expression, IsPatternExpression((ExpressionSyntax)pattern.Target.Syntax, patternSyntax));
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
129editor.ReplaceNode(comparison, condition.WithTriviaFrom(comparison));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
399documentEditor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
60editor.ReplaceNode(root, updatedRoot);
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (2)
103editor.ReplaceNode( 109editor.ReplaceNode(
src\Analyzers\CSharp\CodeFixes\UseThrowExpression\UseThrowExpressionCodeFixProvider.cs (1)
57editor.ReplaceNode(assignmentValue,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
66editor.ReplaceNode(localDeclarationStatement, tupleAssignmentStatement.WithTriviaFrom(localDeclarationStatement));
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
62editor.ReplaceNode(typeArgumentList, typeArgumentList.WithArguments(SeparatedList<TypeSyntax>(list)));
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (1)
260editor.ReplaceNode(editor.OriginalRoot, currentRoot);
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
227editor.ReplaceNode(isExpression, isPattern);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (4)
67editor.ReplaceNode(catchDeclaration, catchDeclaration.WithIdentifier(default)); 94editor.ReplaceNode(declarationExpression, replacementNode); 110editor.ReplaceNode(isPatternExpression, replacementNode); 221_editor.ReplaceNode(_localDeclarationStatement, Block(_statementsBuilder));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (2)
65editor.ReplaceNode( 68editor.ReplaceNode(
Microsoft.CodeAnalysis.Features (33)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
316documentEditor.ReplaceNode(container, container.WithAdditionalAnnotations(ContainerAnnotation)); 735editor.ReplaceNode(oldNode, newNode.WithAdditionalAnnotations(Simplifier.Annotation));
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
98editor.ReplaceNode(property, fullProperty.WithAdditionalAnnotations(Formatter.Annotation));
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
493editor.ReplaceNode(
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
642editor.ReplaceNode(match, replacement); 657editor.ReplaceNode(match, replacement);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
260editor.ReplaceNode(nameToken.Parent, nameToken.Parent.WithAdditionalAnnotations( 300editor.ReplaceNode(nameToken.Parent, nameToken.Parent.WithAdditionalAnnotations(
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (4)
209_editor.ReplaceNode(_cref, GetCrefReference(_cref)); 226_editor.ReplaceNode(_identifierName, newIdentifierName); 263_editor.ReplaceNode(declarator!, newDeclarator); 281_editor.ReplaceNode(
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (3)
263editor.ReplaceNode(parent, parent.WithAdditionalAnnotations( 268editor.ReplaceNode(parent, parent.WithAdditionalAnnotations( 273editor.ReplaceNode(parent, parent.WithAdditionalAnnotations(
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
55editor.ReplaceNode(nodeToReplace, nameOfSyntax);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
82editor.ReplaceNode(expression, rewritten);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
84editor.ReplaceNode(editor.OriginalRoot, updatedRoot);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (1)
70editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
54editor.ReplaceNode(node, generator.WithModifiers(node, fixedModifiers));
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchExpressionCodeFixProvider.cs (1)
40editor.ReplaceNode(switchNode, newSwitchNode);
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchStatementCodeFixProvider.cs (2)
51editor.ReplaceNode(editor.OriginalRoot, newRoot); 55editor.ReplaceNode(switchNode, newSwitchNode);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
201editor.ReplaceNode(returnSyntax, returnTaskCompletedTask); 207editor.ReplaceNode(returnExpression, newExpression);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (1)
45editor.ReplaceNode(node, WithElasticTrailingTrivia(RewriteNode()));
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
78editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
47editor.ReplaceNode(node, editor.Generator.LiteralExpression(newDocCommentId).WithTriviaFrom(node));
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
114editor.ReplaceNode( 146editor.ReplaceNode(localDeclaration, updatedLocalDeclaration);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
83editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
122editor.ReplaceNode(
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
90editor.ReplaceNode(statement, newStatement);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
42editor.ReplaceNode(node, node.WithModifiers(tokenList))
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
44editor.ReplaceNode(node, newNode)
src\Analyzers\VisualBasic\CodeFixes\UseInferredMemberName\VisualBasicUseInferredMemberNameCodeFixProvider.vb (1)
31editor.ReplaceNode(namedFieldInitializer, inferredFieldInitializer)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
src\Analyzers\VisualBasic\CodeFixes\RemoveUnnecessaryByVal\VisualBasicRemoveUnnecessaryByValCodeFixProvider.vb (1)
42editor.ReplaceNode(node, node.WithModifiers(tokenList))
src\Analyzers\VisualBasic\CodeFixes\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
44editor.ReplaceNode(node, newNode)
src\Analyzers\VisualBasic\CodeFixes\UseInferredMemberName\VisualBasicUseInferredMemberNameCodeFixProvider.vb (1)
31editor.ReplaceNode(namedFieldInitializer, inferredFieldInitializer)
Microsoft.CodeAnalysis.Workspaces (7)
Editing\SymbolEditorExtensions.cs (1)
74(e, d) => e.ReplaceNode(typeRef, getNewBaseType(e.Generator)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (3)
70editor.ReplaceNode( 93editor.ReplaceNode( 114editor.ReplaceNode(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
192editor.ReplaceNode(originalRoot, currentRoot);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
141editor.ReplaceNode( 171editor.ReplaceNode(
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
52editor.ReplaceNode(fieldX, editor.Generator.FieldDeclaration("Y", editor.Generator.TypeExpression(SpecialType.System_String), Accessibility.Public));
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (2)
101editor.ReplaceNode(comImportAttribute, generatedComInterfaceAttribute); 135editor.ReplaceNode(member, generatedDeclaration);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
62editor.ReplaceNode(
Analyzers\ConvertToLibraryImportFixer.cs (1)
191editor.ReplaceNode(methodSyntax, generatedDeclaration);