276 references to ReplaceNode
Microsoft.AspNetCore.App.CodeFixes (7)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Features (41)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Compilation\SemanticModelAPITests.cs (16)
1558newEqualsValue = param.ReplaceNode(equalsValue, newEqualsValue).Default;
2092newSyntax = oldSyntax.ReplaceNode(oldSyntax.DescendantNodes().OfType<CastExpressionSyntax>().Single(), newArgument);
2109newSyntax = oldSyntax.ReplaceNode(oldSyntax.DescendantNodes().OfType<CastExpressionSyntax>().Single(), newArgument);
2191var speculatedStatement = statement.ReplaceNode(initializer.Value, SyntaxFactory.ParseExpression("0"));
2225var speculatedStatement = statement.ReplaceNode(expression, SyntaxFactory.ParseExpression("0"));
2233var newSpeculatedStatement = statement.ReplaceNode(expression, SyntaxFactory.ParseExpression("1.1"));
2352var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2448var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2490var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2535var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2567var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2584speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2598speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2638var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2675var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
2774var speculatedMethod = methodDecl.ReplaceNode(methodDecl.Body, blockStatement);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.Features (23)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.VisualBasic.Features (21)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (14)
TestSyntaxNodes.vb (9)
1248simpleTree = simpleTree.ReplaceNode(firstOper, SyntaxFactory.StringLiteralExpression(SyntaxFactory.StringLiteralToken("""Hi""", "Hi")))
1252simpleTree = simpleTree.ReplaceNode(firstOper, SyntaxFactory.StringLiteralExpression(SyntaxFactory.StringLiteralToken("""ha""", "ha")))
1256simpleTree = simpleTree.ReplaceNode(secondOper, SyntaxFactory.StringLiteralExpression(SyntaxFactory.MissingStringLiteral()))
1260simpleTree = simpleTree.ReplaceNode(newSecondOper, SyntaxFactory.StringLiteralExpression(SyntaxFactory.StringLiteralToken("""Bye""", "Bye")))
1276Dim expr2 = expr.ReplaceNode(bex.Right, SyntaxFactory.ParseExpression("c"))
1905tree = tree.ReplaceNode(op, newOp)
2855Root = Root.ReplaceNode(oldImportClause, newImportsClause)
3280Root = Root.ReplaceNode(Root.Members(1), Module2)
3290Root = Root.ReplaceNode(Root.Members(2), Module3)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (12)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Microsoft.ML.InternalCodeAnalyzer (3)
Microsoft.VisualStudio.LanguageServices.CSharp (5)
Microsoft.VisualStudio.LanguageServices.VisualBasic (15)
CodeModel\VisualBasicCodeModelService.vb (15)
3012delegateStatement = delegateStatement.ReplaceNode(oldType, newType)
3046eventStatement = eventStatement.ReplaceNode(oldType, newType)
3076eventStatement = eventStatement.ReplaceNode(oldType, newType)
3101newFirstParameter = firstParameter.ReplaceNode(oldType, newType)
3110newAccessorBlock = accessorBlock.ReplaceNode(firstParameter, newFirstParameter)
3124newAccessorBlock = accessorBlock.ReplaceNode(accessorBlock.BlockStatement.ParameterList, newParameterList)
3130eventBlock = eventBlock.ReplaceNode(accessorBlock, newAccessorBlock)
3184declareStatement = declareStatement.ReplaceNode(oldType, newType)
3236methodStatement = methodStatement.ReplaceNode(oldType, newType)
3295parameter = parameter.ReplaceNode(oldType, newType)
3323propertyStatement = propertyStatement.ReplaceNode(oldType, newType)
3365newFirstParameter = firstParameter.ReplaceNode(oldType, newType)
3374newAccessorBlock = accessorBlock.ReplaceNode(firstParameter, newFirstParameter)
3379propertyBlock = propertyBlock.ReplaceNode(accessorBlock, newAccessorBlock)
3406variableDeclarator = variableDeclarator.ReplaceNode(oldType, newType)
System.Text.RegularExpressions.Generator (2)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (2)
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (2)