7 references to ReplaceToken
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxNodeTests.cs (4)
2257
var cu2 = cu.
ReplaceToken
(privateToken, new[] { publicToken, partialToken });
2260
var cu3 = cu.
ReplaceToken
(privateToken, new SyntaxToken[] { });
2274
Assert.Throws<InvalidOperationException>(() => cu.
ReplaceToken
(identifierC, new[] { identifierA, identifierB }));
2277
Assert.Throws<InvalidOperationException>(() => cu.
ReplaceToken
(identifierC, new SyntaxToken[] { }));
Syntax\SyntaxRewriterTests.cs (1)
430
var newRoot = root.
ReplaceToken
(privateToken, new[] { publicToken, partialToken });
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
1504
Dim cu2 = cu.
ReplaceToken
(privateToken, {publicToken, partialToken})
1509
Dim cu3 = cu.
ReplaceToken
(privateToken, New SyntaxToken() {})