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)
3220var newMembers = compilationUnit.Members.Insert(index, (MemberDeclarationSyntax)member);
3225var newMembers = namespaceDeclaration.Members.Insert(index, (MemberDeclarationSyntax)member);
3230var newMembers = typeDeclaration.Members.Insert(index, (MemberDeclarationSyntax)member);
3361var newAttributeLists = compilationUnit.AttributeLists.Insert(index, (AttributeListSyntax)list);
3366var newAttributeLists = enumDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3371var newAttributeLists = classDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3376var newAttributeLists = structDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3381var newAttributeLists = interfaceDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3386var newAttributeLists = method.AttributeLists.Insert(index, (AttributeListSyntax)list);
3391var newAttributeLists = operationDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3396var newAttributeLists = conversion.AttributeLists.Insert(index, (AttributeListSyntax)list);
3401var newAttributeLists = constructor.AttributeLists.Insert(index, (AttributeListSyntax)list);
3406var newAttributeLists = destructor.AttributeLists.Insert(index, (AttributeListSyntax)list);
3411var newAttributeLists = property.AttributeLists.Insert(index, (AttributeListSyntax)list);
3416var newAttributeLists = eventDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3421var newAttributeLists = indexer.AttributeLists.Insert(index, (AttributeListSyntax)list);
3426var newAttributeLists = field.AttributeLists.Insert(index, (AttributeListSyntax)list);
3431var newAttributeLists = eventFieldDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3436var newAttributeLists = delegateDeclaration.AttributeLists.Insert(index, (AttributeListSyntax)list);
3441var newAttributeLists = member.AttributeLists.Insert(index, (AttributeListSyntax)list);
3446var newAttributeLists = parameter.AttributeLists.Insert(index, (AttributeListSyntax)list);
3463var usingsList = compilationUnit.Usings.Insert(index, import);
Roslyn.Diagnostics.CSharp.Analyzers (2)