17 references to RemoveAt
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTriviaList.cs (1)
384return this.RemoveAt(index);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
164triviaList = triviaList.RemoveAt(removalList[i]);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
309withoutBlankLine = token.WithLeadingTrivia(leadingTrivia.RemoveAt(0));
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (2)
63var updatedTriviaList = triviaList.RemoveAt(triviaIndex); 67updatedTriviaList = updatedTriviaList.RemoveAt(triviaIndex - 1);
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
163leadingTrivia = leadingTrivia.RemoveAt(commentIndex); 166leadingTrivia = leadingTrivia.RemoveAt(commentIndex);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
309withoutBlankLine = token.WithLeadingTrivia(leadingTrivia.RemoveAt(0));
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
415leadingTrivia = leadingTrivia.RemoveAt(i);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxTriviaListTests.cs (6)
112newList = list.RemoveAt(0); 116newList = list.RemoveAt(list.Count - 1); 173Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(-1)); 174Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(list.Count)); 185DoTestAddInsertRemoveReplaceOnEmptyList(SyntaxFactory.ParseLeadingTrivia("/*A*/").RemoveAt(0)); 216Assert.Throws<ArgumentOutOfRangeException>(() => list.RemoveAt(0));
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Pragma.cs (1)
195triviaList = triviaList.RemoveAt(indexOfTriviaToRemoveOrToggle);
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
164triviaList = triviaList.RemoveAt(removalList[i]);