34 references to Last
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (1)
37syntaxTree.GetLocation(TextSpan.FromBounds(arguments.Last().FullSpan.End, match.Span.End)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
172var stringLiteral = CreateUtf8String(SyntaxTriviaList.Empty, stringValue, argumentList.Arguments.Last().GetTrailingTrivia(), isConvertedToReadOnlySpan);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
24207Assert.Equal("System.Int32 (System.Int32 elem1, System.Int32 elem2).elem2", model.GetDeclaredSymbol(type.Elements.Last()).ToTestDisplayString()); 24209Assert.Equal("System.Int32 (System.Int32 elem1, System.Int32 elem2).elem2", model.GetDeclaredSymbol((SyntaxNode)type.Elements.Last()).ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\CollectionExpressionTests.cs (3)
32407var element2 = collection.Elements.Last(); 32449var element2 = collection.Elements.Last(); 32494var element2 = collection.Elements.Last();
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (1)
60var lastDeclaration = variables.Last();
EditAndContinue\BreakpointSpans.cs (1)
246return parameters.Last();
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1727return TextSpan.FromBounds(constraint.WhereKeyword.SpanStart, constraint.Constraints.Last().Span.End);
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
172var stringLiteral = CreateUtf8String(SyntaxTriviaList.Empty, stringValue, argumentList.Arguments.Last().GetTrailingTrivia(), isConvertedToReadOnlySpan);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UsingStatementTests.cs (1)
1382var secondDeclaredSymbol = model.GetDeclaredSymbol(usingStatement.Declaration.Variables.Last());
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
898Return TextSpan.FromBounds(list.First.SpanStart, list.Last.Span.End) 1422Return DirectCast(node, VariableDeclaratorSyntax).Names.Last().Identifier
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ArgumentListSyntaxExtensions.vb (1)
14If count = 1 AndAlso argumentList.Arguments.Last().IsMissing AndAlso argumentList.Arguments.SeparatorCount = 0 Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\IsStatementTerminatingTokenVisitor.vb (4)
50Return TargetTokenMatches(GetExpressionTerminatingToken(node.Expressions.Last())) 66Dim lastDeclarator = node.Declarators.Last() 73Return TargetTokenMatches(lastDeclarator.Names.Last().Identifier) 87Dim lastClause = node.Clauses.Last()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
973Dim lastOrdering = orderByClause.Orderings.Last()
Microsoft.CodeAnalysis.VisualBasic.Features (3)
EditAndContinue\BreakpointSpans.vb (1)
100Return TextSpan.FromBounds(list.First.SpanStart, list.Last.Span.End)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
1165Return GetDiagnosticSpan(fieldDeclaration.Modifiers, fieldDeclaration.Declarators.First, fieldDeclaration.Declarators.Last)
src\Compilers\VisualBasic\Portable\Syntax\LambdaUtilities.vb (1)
291(rangeVariable.SpanStart = groupByClause.ByKeyword.SpanStart AndAlso rangeVariable Is groupByClause.Items.Last) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
OrganizeImports\VisualBasicOrganizeImportsService.Rewriter.vb (1)
79Return TextSpan.FromBounds(list.First().FullSpan.Start, list.Last().FullSpan.[End])
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
898Return TextSpan.FromBounds(list.First.SpanStart, list.Last.Span.End) 1422Return DirectCast(node, VariableDeclaratorSyntax).Names.Last().Identifier
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ArgumentListSyntaxExtensions.vb (1)
14If count = 1 AndAlso argumentList.Arguments.Last().IsMissing AndAlso argumentList.Arguments.SeparatorCount = 0 Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\IsStatementTerminatingTokenVisitor.vb (4)
50Return TargetTokenMatches(GetExpressionTerminatingToken(node.Expressions.Last())) 66Dim lastDeclarator = node.Declarators.Last() 73Return TargetTokenMatches(lastDeclarator.Names.Last().Identifier) 87Dim lastClause = node.Clauses.Last()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
973Dim lastOrdering = orderByClause.Orderings.Last()
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SyntaxPathTests.cs (1)
51var path = new SyntaxPath(((InvocationExpressionSyntax)root).ArgumentList.Arguments.Last());
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
2781var lastMember = newEnumDeclaration.Members.Last();