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