6 references to InsertTokensBefore
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxNodeTests.cs (2)
2277
var cu1 = cu.
InsertTokensBefore
(publicToken, new[] { staticToken });
2294
Assert.Throws<InvalidOperationException>(() => cu.
InsertTokensBefore
(identifierC, new[] { identifierA, identifierB }));
Syntax\SyntaxRewriterTests.cs (1)
448
var newRoot = root.
InsertTokensBefore
(publicToken, new[] { staticToken });
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Syntax\SyntaxRewriterTests.vb (1)
617
Dim newRoot = root.
InsertTokensBefore
(publicToken, New SyntaxToken() {staticToken})
TestSyntaxNodes.vb (2)
1542
Dim cu1 = cu.
InsertTokensBefore
(publicToken, {sharedToken})
1565
Assert.Throws(Of InvalidOperationException)(Function() cu.
InsertTokensBefore
(identifierC, {identifierA, identifierB}))