9 references to Last
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
335var last = elementsWithSeparators.Last();
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
80var addLineBreak = item.IsToken || item == nodeOrTokenList.Last();
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
335var last = elementsWithSeparators.Last();
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
80var addLineBreak = item.IsToken || item == nodeOrTokenList.Last();
Microsoft.CodeAnalysis.Features (5)
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (5)
219var last = _listItems.GetWithSeparators().Last(); 349itemsAndSeparators.Last(), NewLineTrivia, 355result.Add(Edit.DeleteBetween(itemsAndSeparators.Last(), _listSyntax.GetLastToken())); 459itemsAndSeparators.Last(), NewLineTrivia, 466result.Add(Edit.DeleteBetween(itemsAndSeparators.Last(), _listSyntax.GetLastToken()));