13 references to LastOrDefault
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (2)
436var lastParameter = parameters.LastOrDefault(); 513var lastParameter = parameters.LastOrDefault();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
462if (method.Parameters.LastOrDefault()?.IsParams == true)
Microsoft.CodeAnalysis.CSharp (3)
CodeGen\EmitStatement.cs (1)
658if (list != null && list.Statements.LastOrDefault() == block)
CodeGen\Optimizer.cs (1)
765var lastSideeffect = sideeffects.LastOrDefault();
Compilation\MemberSemanticModel.cs (1)
1804node = call.Arguments.LastOrDefault();
Microsoft.CodeAnalysis.EditorFeatures (1)
NavigationBar\NavigationBarController_ModelComputation.cs (1)
256var itemToGray = nextItem ?? items.LastOrDefault();
Microsoft.CodeAnalysis.Features (3)
ChangeSignature\AbstractChangeSignatureService.cs (2)
800parameters.LastOrDefault()?.IsParams == true && 1045if (symbol is IMethodSymbol methodSymbol && methodSymbol.Parameters.LastOrDefault()?.IsParams == true)
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
462if (method.Parameters.LastOrDefault()?.IsParams == true)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
488lastOperation = blocks[i].BranchValue ?? blocks[i].Operations.LastOrDefault();
Microsoft.CodeAnalysis.Workspaces (1)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
249if (method.Parameters.LastOrDefault()?.Type is IArrayTypeSymbol arrayType)
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
851var lastField = _state._method?.Parameters.LastOrDefault()?.Name ?? PlaceholderSnippetField;