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