8 references to Replace
Microsoft.AspNetCore.Razor.Language.UnitTests (7)
Syntax\SyntaxListTests.cs (7)
1171
var newList = originalList.
Replace
(originalList[0], replacement);
1191
var newList = originalList.
Replace
(originalList[1], replacement);
1211
var newList = originalList.
Replace
(originalList[0], replacement);
1229
Assert.Throws<ArgumentNullException>(() => list.
Replace
(null!, replacement));
1240
Assert.Throws<ArgumentNullException>(() => list.
Replace
(list[0], null!));
1253
Assert.Throws<ArgumentOutOfRangeException>(() => list.
Replace
(nodeNotInList, replacement));
1266
var replaceResult = originalList.
Replace
(originalList[0], replacement);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\TagHelperBlockRewriter.cs (1)
649
builder.AddRange(rewrittenBody.Children.
Replace
(firstChild, newFirstChild));