13 references to Insert
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTokenList.cs (1)
306return Insert(this.Count, token);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTokenListTests.cs (11)
89newList = list.Insert(0, tokenD); 93newList = list.Insert(1, tokenD); 97newList = list.Insert(2, tokenD); 101newList = list.Insert(3, tokenD); 178Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 179Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, tokenD)); 185Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken))); 213newList = list.Insert(0, tokenD); 226Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, tokenD)); 227Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 233Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken)));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
198modifiers = modifiers.Insert(0, SyntaxFactory.Token(SyntaxKind.ThisKeyword));