19 references to Insert
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
84newModifiers = newModifiers.Insert(0, publicModifier);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
84newModifiers = newModifiers.Insert(0, publicModifier);
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTokenList.cs (1)
317return Insert(this.Count, token);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
191return (modifiers.Insert(insertionIndex, s_asyncKeywordWithSpace.WithLeadingTrivia(partialModifier.LeadingTrivia)), returnType);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\MakeMethodAsynchronous\CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
191return (modifiers.Insert(insertionIndex, s_asyncKeywordWithSpace.WithLeadingTrivia(partialModifier.LeadingTrivia)), returnType);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Syntax\SyntaxTokenListTests.cs (11)
91newList = list.Insert(0, tokenD); 95newList = list.Insert(1, tokenD); 99newList = list.Insert(2, tokenD); 103newList = list.Insert(3, tokenD); 180Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 181Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(list.Count + 1, tokenD)); 187Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken))); 216newList = list.Insert(0, tokenD); 229Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(1, tokenD)); 230Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(-1, tokenD)); 236Assert.Throws<ArgumentOutOfRangeException>(() => list.Insert(0, default(SyntaxToken)));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
197modifiers = modifiers.Insert(0, ThisKeyword); 841modifiersToken = modifiersToken.Insert(0, StaticKeyword);
Microsoft.Interop.SourceGeneration (1)
SyntaxExtensions.cs (1)
117return modifiers.Insert(idxInsert, SyntaxFactory.Token(modifierToAdd));