48 references to Insert
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (9)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
Syntax\SyntaxListTests.cs (10)
82newList = list.Insert(0, nodeD);
86newList = list.Insert(1, nodeD);
90newList = list.Insert(2, nodeD);
94newList = list.Insert(3, nodeD);
171Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, nodeD));
172Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, nodeD));
207newList = list.Insert(0, nodeD);
220Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, nodeD));
221Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, nodeD));
228Assert.Throws<ArgumentNullException>(() => list.Insert(0, null));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.VisualStudio.LanguageServices.CSharp (22)
CodeModel\CSharpCodeModelService.cs (22)
3221var newMembers = compilationUnit.Members.Insert(index, (MemberDeclarationSyntax)member);
3226var newMembers = namespaceDeclaration.Members.Insert(index, (MemberDeclarationSyntax)member);
3231var newMembers = typeDeclaration.Members.Insert(index, (MemberDeclarationSyntax)member);
3362var newAttributeLists = compilationUnit.AttributeLists.Insert(index, (AttributeListSyntax)list);
3367var newAttributeLists = enumDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3372var newAttributeLists = classDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3377var newAttributeLists = structDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3382var newAttributeLists = interfaceDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3387var newAttributeLists = method.AttributeLists.Insert(index, (AttributeListSyntax)list);
3392var newAttributeLists = operationDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3397var newAttributeLists = conversion.AttributeLists.Insert(index, (AttributeListSyntax)list);
3402var newAttributeLists = constructor.AttributeLists.Insert(index, (AttributeListSyntax)list);
3407var newAttributeLists = destructor.AttributeLists.Insert(index, (AttributeListSyntax)list);
3412var newAttributeLists = property.AttributeLists.Insert(index, (AttributeListSyntax)list);
3417var newAttributeLists = eventDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3422var newAttributeLists = indexer.AttributeLists.Insert(index, (AttributeListSyntax)list);
3427var newAttributeLists = field.AttributeLists.Insert(index, (AttributeListSyntax)list);
3432var newAttributeLists = eventFieldDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3437var newAttributeLists = delegateDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3442var newAttributeLists = member.AttributeLists.Insert(index, (AttributeListSyntax)list);
3447var newAttributeLists = parameter.AttributeLists.Insert(index, (AttributeListSyntax)list);
3464var usingsList = compilationUnit.Usings.Insert(index, import);
Roslyn.Diagnostics.CSharp.Analyzers (2)