17 references to InsertNodesBefore
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxNodeTests.cs (5)
2136var newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[0], new SyntaxNode[] { argC, argD });
2144newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments[1], new SyntaxNode[] { argC, argD });
2162Assert.Throws<InvalidOperationException>(() => ifstatement.InsertNodesBefore(then, new[] { stat1, stat2 }));
2200var newBlock = block.InsertNodesBefore(block.Statements[0], new[] { stmt1, stmt2 });
2208newBlock = block.InsertNodesBefore(block.Statements[1], new[] { stmt1, stmt2 });
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
TestSyntaxNodes.vb (5)
1337Dim newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(0), {argC, argD})
1345newNode = invocation.InsertNodesBefore(invocation.ArgumentList.Arguments(1), {argC, argD})
1361Assert.Throws(Of InvalidOperationException)(Function() invocation.InsertNodesBefore(expA, {expC, expD}))
1431Dim newBlock = ifBlock.InsertNodesBefore(ifBlock.Statements(0), {stmt1, stmt2})
1451newBlock = ifBlock.InsertNodesBefore(ifBlock.Statements(1), {stmt1, stmt2})
Microsoft.CodeAnalysis.Workspaces (1)