21 references to Last
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTriviaList.Reversed.cs (1)
94var last = list.Last();
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
80if (!_syntaxFacts.IsEndOfLineTrivia(endToken.TrailingTrivia.Last()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (2)
182trivia = endOfFileToken.LeadingTrivia.Last(); 189trivia = token.TrailingTrivia.Last();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaListExtensions.cs (1)
25=> triviaList.Any() ? triviaList.Last() : default;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
509if (trailing.Count >= 1 && isEndOfLineTrivia(trailing.Last()))
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxNormalizer.cs (1)
1246return EndsInLineBreak(trailing.Last());
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
82if (colonToken.TrailingTrivia.Last().Kind() != SyntaxKind.EndOfLineTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
189trivia = eof.LeadingTrivia.Last();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
159if (!trailingTrivia.Any() || trailingTrivia.Last().Kind() != SyntaxKind.EndOfLineTrivia)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
82if (colonToken.TrailingTrivia.Last().Kind() != SyntaxKind.EndOfLineTrivia)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
189trivia = eof.LeadingTrivia.Last();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\UsingsAndExternAliasesOrganizer.cs (1)
159if (!trailingTrivia.Any() || trailingTrivia.Last().Kind() != SyntaxKind.EndOfLineTrivia)
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
80if (!_syntaxFacts.IsEndOfLineTrivia(endToken.TrailingTrivia.Last()))
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\SyntaxNormalizer.vb (3)
303Return (token.HasTrailingTrivia AndAlso token.TrailingTrivia.Last.Kind = SyntaxKind.ColonTrivia) OrElse 630trivia.GetStructure.GetLastToken.TrailingTrivia.Last.Kind = SyntaxKind.EndOfLineTrivia Then 709node.TrailingTrivia.Last.Kind = SyntaxKind.ColonTrivia
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (2)
182trivia = endOfFileToken.LeadingTrivia.Last(); 189trivia = token.TrailingTrivia.Last();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaListExtensions.cs (1)
25=> triviaList.Any() ? triviaList.Last() : default;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
509if (trailing.Count >= 1 && isEndOfLineTrivia(trailing.Last()))