153 references to GetLastToken
Microsoft.CodeAnalysis.CSharp (2)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1072
token = containingNode.
GetLastToken
();
Syntax\CSharpSyntaxNode.cs (1)
177
var lastToken = this.
GetLastToken
(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.CodeStyle (39)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
181
var nextToken = expressionStatement.
GetLastToken
().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\StatementSyntaxExtensions.cs (1)
31
var nextToken = statement.
GetLastToken
().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (4)
163
statement.
GetLastToken
() != token)
494
return (node.GetFirstToken(includeZeroWidth: true), node.
GetLastToken
(includeZeroWidth: true));
497
var lastToken = node.
GetLastToken
(includeZeroWidth: true);
498
var lastAttributeToken = attributes.Last().
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (1)
44
block.
GetLastToken
(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (2)
92
return objectCreationNode.Type.
GetLastToken
();
97
return arrayCreationNode.Type.
GetLastToken
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
115
var lastTokenOfLabel = section.Labels.Last().
GetLastToken
(includeZeroWidth: true);
125
var endToken = section.Statements.Last().
GetLastToken
(includeZeroWidth: true);
359
var lastToken = statement.
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (6)
48
AddSuppressWrappingIfOnSingleLineOperation(list, queryExpression.GetFirstToken(includeZeroWidth: true), queryExpression.
GetLastToken
(includeZeroWidth: true));
77
var endToken = fromClause.Expression.
GetLastToken
(includeZeroWidth: true);
101
var endToken = queryExpression.
GetLastToken
(includeZeroWidth: true);
118
AddAnchorIndentationOperation(list, firstToken, queryClause.
GetLastToken
(includeZeroWidth: true));
125
AddAnchorIndentationOperation(list, firstToken, selectOrGroupClause.
GetLastToken
(includeZeroWidth: true));
130
AddAnchorIndentationOperation(list, continuation.IntoKeyword, continuation.
GetLastToken
(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (15)
40
AddSuppressWrappingIfOnSingleLineOperation(list, ifStatementNode.IfKeyword, ifStatementNode.Statement.
GetLastToken
(includeZeroWidth: true));
44
AddSuppressWrappingIfOnSingleLineOperation(list, ifStatementNode.Else.ElseKeyword, ifStatementNode.Else.Statement.
GetLastToken
(includeZeroWidth: true));
63
AddSuppressWrappingIfOnSingleLineOperation(list, openParenToken, property.
GetLastToken
());
99
AddSuppressWrappingIfOnSingleLineOperation(list, casePattern.GetFirstToken(), casePattern.
GetLastToken
());
107
AddSuppressWrappingIfOnSingleLineOperation(list, isPattern.GetFirstToken(), isPattern.
GetLastToken
());
124
AddSuppressWrappingIfOnSingleLineOperation(list, isPattern.IsKeyword, propertyPatternClause.
GetLastToken
());
144
AddSuppressWrappingIfOnSingleLineOperation(list, whileStatementNode.GetFirstToken(includeZeroWidth: true), whileStatementNode.Statement.
GetLastToken
(includeZeroWidth: true));
172
AddSuppressWrappingIfOnSingleLineOperation(list, firstToken, propertyDeclNode.AccessorList.
GetLastToken
());
180
AddSuppressWrappingIfOnSingleLineOperation(list, accessorDeclNode.Keyword, accessorDeclNode.
GetLastToken
(includeZeroWidth: true));
188
AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.GetFirstToken(includeZeroWidth: true), switchSection.
GetLastToken
(includeZeroWidth: true));
198
AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.Labels[i].GetFirstToken(includeZeroWidth: true), switchSection.Labels[i].
GetLastToken
(includeZeroWidth: true));
205
AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.Labels[switchSection.Labels.Count - 1].GetFirstToken(includeZeroWidth: true), switchSection.
GetLastToken
(includeZeroWidth: true));
226
AddSuppressAllOperationIfOnMultipleLine(list, anchorToken, parameterNode.
GetLastToken
());
271
var lastToken = statementNode.
GetLastToken
(includeZeroWidth: true);
327
var startToken = pragmaWarningDirectiveTrivia.
GetLastToken
(includeZeroWidth: true, includeDirectives: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (5)
76
return (firstToken, embeddedStatement.
GetLastToken
(includeZeroWidth: true));
86
SwitchSectionSyntax switchSection => (switchSection.GetFirstToken(includeZeroWidth: true), switchSection.
GetLastToken
(includeZeroWidth: true)),
87
AnonymousMethodExpressionSyntax anonymousMethod => (anonymousMethod.DelegateKeyword, anonymousMethod.
GetLastToken
(includeZeroWidth: true)),
109
var lastToken = statementNode.
GetLastToken
(includeZeroWidth: true);
119
var lastToken = statementNode.
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
31
var lastToken = (node as TypeDeclarationSyntax)?.TypeParameterList?.
GetLastToken
() ?? node.Identifier;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
111
? conditional.WhenFalse.
GetLastToken
()
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
266
var tokenAfterNamespace = namespaceDeclaration.
GetLastToken
(includeZeroWidth: true, includeSkipped: true).GetNextTokenOrEndOfFile(includeZeroWidth: true, includeSkipped: true);
400
if (!fileScopedNamespace.
GetLastToken
().GetNextTokenOrEndOfFile().IsKind(SyntaxKind.EndOfFileToken)
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (2)
61
baseToken, conditional.QuestionToken, conditional.WhenTrue.
GetLastToken
(),
64
baseToken, conditional.ColonToken, conditional.WhenFalse.
GetLastToken
(),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
91
var lastToken = destination.
GetLastToken
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
297
isRightAfterUsingOrImportDirective: targetToken.Parent is UsingDirectiveSyntax usingDirective && usingDirective?.
GetLastToken
() == targetToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
181
var endToken = section.Statements.Last().
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (4)
163
var nextToken = compilationUnit.Usings.Last().
GetLastToken
().GetNextTokenOrEndOfFile();
176
var nextToken = compilationUnit.Usings.Last().
GetLastToken
().GetNextTokenOrEndOfFile();
215
var nextToken = namespaceDeclaration.Usings.Last().
GetLastToken
().GetNextTokenOrEndOfFile();
228
var nextToken = namespaceDeclaration.Usings.Last().
GetLastToken
().GetNextToken();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
382
var nextToken = baseObjectCreationExpressionNode.
GetLastToken
(includeZeroWidth: true).GetNextToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1081
span = localDecl.
GetLastToken
().GetNextToken().Span;
Microsoft.CodeAnalysis.CSharp.Features (30)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
336
var nextToken = localDeclaration.
GetLastToken
().GetNextTokenOrEndOfFile();
DecompiledSource\CSharpDecompiledSourceFormattingRule.cs (1)
45
if (previousStatement.
GetLastToken
() != previousToken || nextStatement.GetFirstToken() != currentToken)
EditAndContinue\BreakpointSpans.cs (1)
737
return CreateSpan(switchStatement, (switchStatement.CloseParenToken != default) ? switchStatement.CloseParenToken : switchStatement.Expression.
GetLastToken
());
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
70
var lastToken = lastStatement.
GetLastToken
(includeZeroWidth: true);
ExtractMethod\CSharpSelectionValidator.cs (2)
124
if (assign.Right.
GetLastToken
().Kind() == SyntaxKind.None)
129
.With(s => s.LastTokenInFinalSpan = assign.Right.
GetLastToken
(includeZeroWidth: true)), text);
GenerateType\CSharpGenerateTypeService.cs (3)
202
var token = simpleName.
GetLastToken
().GetNextToken();
222
var token = simpleName.
GetLastToken
().GetNextToken();
241
var nextToken = simpleName.
GetLastToken
().GetNextToken();
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
474
!nextStatement.
GetLastToken
().TrailingTrivia.Any(SyntaxKind.EndOfLineTrivia))
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
139
var isSingleLine = sourceText.AreOnSameLine(ifNode.GetFirstToken(), ifNode.
GetLastToken
());
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
181
var nextToken = expressionStatement.
GetLastToken
().GetNextToken();
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (1)
111
? conditional.WhenFalse.
GetLastToken
()
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
266
var tokenAfterNamespace = namespaceDeclaration.
GetLastToken
(includeZeroWidth: true, includeSkipped: true).GetNextTokenOrEndOfFile(includeZeroWidth: true, includeSkipped: true);
400
if (!fileScopedNamespace.
GetLastToken
().GetNextTokenOrEndOfFile().IsKind(SyntaxKind.EndOfFileToken)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (2)
226
(tokensForLeadingTrivia: new[] { s.Labels[0].GetFirstToken(), s.Labels[0].
GetLastToken
() },
227
tokensForTrailingTrivia: new[] { s.Statements[0].GetFirstToken(), s.Statements[0].
GetLastToken
() },
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (2)
61
baseToken, conditional.QuestionToken, conditional.WhenTrue.
GetLastToken
(),
64
baseToken, conditional.ColonToken, conditional.WhenFalse.
GetLastToken
(),
Structure\Providers\AnonymousMethodExpressionStructureProvider.cs (1)
36
? anonymousMethod.ParameterList.
GetLastToken
(includeZeroWidth: true)
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
42
constructorDeclaration.ParameterList.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (1)
44
operatorDeclaration.ParameterList.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\DestructorDeclarationStructureProvider.cs (1)
33
destructorDeclaration.ParameterList.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
43
indexerDeclaration.ParameterList.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
42
methodDeclaration.ParameterList.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\NamespaceDeclarationStructureProvider.cs (1)
30
namespaceDeclaration.Name.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
42
operatorDeclaration.ParameterList.
GetLastToken
(includeZeroWidth: true),
Structure\Providers\TypeDeclarationStructureProvider.cs (1)
30
: typeDeclaration.TypeParameterList.
GetLastToken
(includeZeroWidth: true);
Wrapping\SeparatedSyntaxList\CSharpArgumentWrapper.cs (1)
90
var endToken = listSyntax.
GetLastToken
();
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
67
var lastToken = listSyntax.
GetLastToken
();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Parsing\ParsingErrorRecoveryTests.cs (2)
7377
Assert.Equal("foreach", srcTree.
GetLastToken
().ToString());
7380
var foreachNode = srcTree.
GetLastToken
().Parent;
Syntax\SyntaxNodeTests.cs (9)
961
var last = tree.GetCompilationUnitRoot().
GetLastToken
();
969
var last = tree.GetCompilationUnitRoot().
GetLastToken
(includeZeroWidth: true);
972
last = tree.GetCompilationUnitRoot().Members[0].
GetLastToken
(includeZeroWidth: true);
1107
var token = tree.GetCompilationUnitRoot().
GetLastToken
(); // skip EOF
1138
var token = tree.GetCompilationUnitRoot().
GetLastToken
(includeSkipped: true);
1167
var token = tree.GetCompilationUnitRoot().
GetLastToken
(includeSkipped: false);
1346
var closeBraceChild = member.
GetLastToken
();
2087
var triviaLocation = method.ReturnType.
GetLastToken
().TrailingTrivia[0].GetLocation();
2090
Assert.Equal(method.ReturnType.
GetLastToken
().TrailingTrivia[0].Span, triviaLocation.SourceSpan);
Microsoft.CodeAnalysis.CSharp.Workspaces (49)
Formatting\TypingFormattingRule.cs (1)
86
endToken = firstStatement.
GetLastToken
();
Simplification\CSharpSimplificationService.Expander.cs (2)
792
if (invocationExpression != null && invocationExpression.Expression.
GetLastToken
() == originalSimpleName.
GetLastToken
())
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
154
if (!FormattingRangeHelper.AreTwoTokensOnSameLine(node.Statements[0].GetFirstToken(), node.Statements[0].
GetLastToken
()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\StatementSyntaxExtensions.cs (1)
31
var nextToken = statement.
GetLastToken
().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (4)
163
statement.
GetLastToken
() != token)
494
return (node.GetFirstToken(includeZeroWidth: true), node.
GetLastToken
(includeZeroWidth: true));
497
var lastToken = node.
GetLastToken
(includeZeroWidth: true);
498
var lastAttributeToken = attributes.Last().
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\AnchorIndentationFormattingRule.cs (1)
44
block.
GetLastToken
(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (2)
92
return objectCreationNode.Type.
GetLastToken
();
97
return arrayCreationNode.Type.
GetLastToken
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (3)
115
var lastTokenOfLabel = section.Labels.Last().
GetLastToken
(includeZeroWidth: true);
125
var endToken = section.Statements.Last().
GetLastToken
(includeZeroWidth: true);
359
var lastToken = statement.
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (6)
48
AddSuppressWrappingIfOnSingleLineOperation(list, queryExpression.GetFirstToken(includeZeroWidth: true), queryExpression.
GetLastToken
(includeZeroWidth: true));
77
var endToken = fromClause.Expression.
GetLastToken
(includeZeroWidth: true);
101
var endToken = queryExpression.
GetLastToken
(includeZeroWidth: true);
118
AddAnchorIndentationOperation(list, firstToken, queryClause.
GetLastToken
(includeZeroWidth: true));
125
AddAnchorIndentationOperation(list, firstToken, selectOrGroupClause.
GetLastToken
(includeZeroWidth: true));
130
AddAnchorIndentationOperation(list, continuation.IntoKeyword, continuation.
GetLastToken
(includeZeroWidth: true));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (15)
40
AddSuppressWrappingIfOnSingleLineOperation(list, ifStatementNode.IfKeyword, ifStatementNode.Statement.
GetLastToken
(includeZeroWidth: true));
44
AddSuppressWrappingIfOnSingleLineOperation(list, ifStatementNode.Else.ElseKeyword, ifStatementNode.Else.Statement.
GetLastToken
(includeZeroWidth: true));
63
AddSuppressWrappingIfOnSingleLineOperation(list, openParenToken, property.
GetLastToken
());
99
AddSuppressWrappingIfOnSingleLineOperation(list, casePattern.GetFirstToken(), casePattern.
GetLastToken
());
107
AddSuppressWrappingIfOnSingleLineOperation(list, isPattern.GetFirstToken(), isPattern.
GetLastToken
());
124
AddSuppressWrappingIfOnSingleLineOperation(list, isPattern.IsKeyword, propertyPatternClause.
GetLastToken
());
144
AddSuppressWrappingIfOnSingleLineOperation(list, whileStatementNode.GetFirstToken(includeZeroWidth: true), whileStatementNode.Statement.
GetLastToken
(includeZeroWidth: true));
172
AddSuppressWrappingIfOnSingleLineOperation(list, firstToken, propertyDeclNode.AccessorList.
GetLastToken
());
180
AddSuppressWrappingIfOnSingleLineOperation(list, accessorDeclNode.Keyword, accessorDeclNode.
GetLastToken
(includeZeroWidth: true));
188
AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.GetFirstToken(includeZeroWidth: true), switchSection.
GetLastToken
(includeZeroWidth: true));
198
AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.Labels[i].GetFirstToken(includeZeroWidth: true), switchSection.Labels[i].
GetLastToken
(includeZeroWidth: true));
205
AddSuppressWrappingIfOnSingleLineOperation(list, switchSection.Labels[switchSection.Labels.Count - 1].GetFirstToken(includeZeroWidth: true), switchSection.
GetLastToken
(includeZeroWidth: true));
226
AddSuppressAllOperationIfOnMultipleLine(list, anchorToken, parameterNode.
GetLastToken
());
271
var lastToken = statementNode.
GetLastToken
(includeZeroWidth: true);
327
var startToken = pragmaWarningDirectiveTrivia.
GetLastToken
(includeZeroWidth: true, includeDirectives: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (5)
76
return (firstToken, embeddedStatement.
GetLastToken
(includeZeroWidth: true));
86
SwitchSectionSyntax switchSection => (switchSection.GetFirstToken(includeZeroWidth: true), switchSection.
GetLastToken
(includeZeroWidth: true)),
87
AnonymousMethodExpressionSyntax anonymousMethod => (anonymousMethod.DelegateKeyword, anonymousMethod.
GetLastToken
(includeZeroWidth: true)),
109
var lastToken = statementNode.
GetLastToken
(includeZeroWidth: true);
119
var lastToken = statementNode.
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (1)
31
var lastToken = (node as TypeDeclarationSyntax)?.TypeParameterList?.
GetLastToken
() ?? node.Identifier;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (1)
91
var lastToken = destination.
GetLastToken
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
297
isRightAfterUsingOrImportDirective: targetToken.Parent is UsingDirectiveSyntax usingDirective && usingDirective?.
GetLastToken
() == targetToken,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
181
var endToken = section.Statements.Last().
GetLastToken
(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (4)
163
var nextToken = compilationUnit.Usings.Last().
GetLastToken
().GetNextTokenOrEndOfFile();
176
var nextToken = compilationUnit.Usings.Last().
GetLastToken
().GetNextTokenOrEndOfFile();
215
var nextToken = namespaceDeclaration.Usings.Last().
GetLastToken
().GetNextTokenOrEndOfFile();
228
var nextToken = namespaceDeclaration.Usings.Last().
GetLastToken
().GetNextToken();
Microsoft.CodeAnalysis.UnitTests (1)
CommonSyntaxTests.cs (1)
112
var csharpToken = CSharp.SyntaxFactory.ParseExpression("1 + 123 /*hello*/").
GetLastToken
();
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.cs (1)
3289
var lastToken = newMember.
GetLastToken
();
CodeModel\CSharpCodeModelService.NodeLocator.cs (5)
900
endPosition = node.AttributeLists.Last().
GetLastToken
().Span.End;
941
endPosition = node.AttributeLists.Last().
GetLastToken
().Span.End;
1237
endPosition = node.AttributeLists.Last().
GetLastToken
().Span.End;
1279
endPosition = field.AttributeLists.Last().
GetLastToken
().Span.End;
1320
endPosition = node.AttributeLists.Last().
GetLastToken
().Span.End;
CodeModel\SyntaxNodeExtensions.cs (1)
65
return attributeLists.Last().
GetLastToken
().GetNextToken();