304 references to GetNextToken
Microsoft.CodeAnalysis.CodeStyle (19)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
84var nextToken = endToken.GetNextToken();
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
158if (lastToken.GetNextToken(includeDirectives: true) == node.GetFirstToken())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
636: token.GetNextToken(includeZeroWidth: false, includeSkipped: includeSkipped, includeDirectives: includeDirectives, includeDocumentationComments: includeDocumentationComments); 643token = token.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
92var nextToken = token.GetNextToken(includeZeroWidth, includeSkipped, includeDirectives, includeDocumentationComments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
61position <= token.GetNextToken(includeZeroWidth: true).SpanStart) 74var nextToken = token.GetNextToken(includeZeroWidth: true); 343var nextToken = operation.EndToken.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (1)
174var nextToken = tokenData.Token.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
293var nextToken = lastToken.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (2)
164token2 = token2.GetNextToken(); 195token2 = token2.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
368var nextToken = node.GetLastToken().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (6)
110endToken = endToken.GetNextToken(); 116endToken = endToken.GetNextToken(); 193for (var token = token1.GetNextToken(includeZeroWidth: true); token.FullSpan.End <= token2.FullSpan.Start; token = token.GetNextToken(includeZeroWidth: true)) 272var nextToken = token.GetNextToken(); 363var endToken = root.FindTokenFromEnd(span.End).GetNextToken();
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
36var nextToken = lastToken.GetNextToken(includeZeroWidth: true, includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
178var nextToken = commaToken.GetNextToken();
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\ParameterHelpers.cs (1)
966if (refKind == RefKind.Ref && refnessKeyword.GetNextToken() == modifier)
Syntax\LookupPosition.cs (2)
502firstIncluded = lambdaExpressionOrQueryNode.GetFirstToken().GetNextToken(); 503return IsBetweenTokens(position, firstIncluded, lambdaExpressionOrQueryNode.GetLastToken().GetNextToken());
Microsoft.CodeAnalysis.CSharp.CodeStyle (19)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
215var firstTokenAfterEmbeddedStatement = embeddedStatement.GetLastToken().GetNextToken();
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
181var nextToken = expressionStatement.GetLastToken().GetNextToken();
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
101var nextToken = token.GetNextToken();
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
82var nextToken = token.GetNextToken();
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
102var nextToken = token.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\StatementSyntaxExtensions.cs (1)
31var nextToken = statement.GetLastToken().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
234if (genericIdentifier.GetNextToken(includeSkipped: true).Kind() == SyntaxKind.LessThanToken) 261var token = genericIdentifier.GetNextToken(includeSkipped: true); 270var next = token.GetNextToken(includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
504var firstTokenAfterAttribute = lastAttributeToken.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (2)
127var firstTokenAfterTypeConstraint = currentToken.Parent.GetLastToken().GetNextToken(); 128var lastTokenForTypeConstraint = currentToken.Parent.GetLastToken().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (4)
116var nextToken = lastTokenOfLabel.GetNextToken(includeZeroWidth: true); 250AddIndentBlockOperation(list, bracePair.openBrace.GetNextToken(includeZeroWidth: true), bracePair.closeBrace.GetPreviousToken(includeZeroWidth: true)); 269AddIndentBlockOperation(list, bracketPair.openBracket.GetNextToken(includeZeroWidth: true), bracketPair.closeBracket.GetPreviousToken(includeZeroWidth: true)); 291SetAlignmentBlockOperation(list, bracePair.openBrace, bracePair.openBrace.GetNextToken(includeZeroWidth: true), bracePair.closeBrace, option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
104var startToken = baseToken.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
99var nextToken = token.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
564simpleName.GetLastToken().GetNextToken().Kind() == SyntaxKind.LessThanToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
286var firstBodyToken = converted.OpenBraceToken.GetNextToken(includeZeroWidth: true, includeSkipped: true);
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
192var nextToken = finalTypeDeclaration.OpenBraceToken.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
417var nextToken = originalToken.GetNextToken(includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
61var nextToken = lastToken.GetNextToken(includeZeroWidth: true, includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (2)
157constructorInitializer.ArgumentList.OpenParenToken.GetNextToken(includeZeroWidth: true), 203node.GetFirstToken(includeZeroWidth: true).GetNextToken(includeZeroWidth: true),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
254if (token.GetNextToken().IsEqualsTokenInAutoPropertyInitializers())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
228var nextToken = namespaceDeclaration.Usings.Last().GetLastToken().GetNextToken();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
382var nextToken = baseObjectCreationExpressionNode.GetLastToken(includeZeroWidth: true).GetNextToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1081span = localDecl.GetLastToken().GetNextToken().Span;
Microsoft.CodeAnalysis.CSharp.Features (28)
BraceCompletion\StringLiteralBraceCompletionService.cs (1)
100token = token.GetNextToken();
ChangeSignature\CSharpChangeSignatureService.cs (1)
220var start = lastAttributes?.GetLastToken().GetNextToken().SpanStart ??
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
229var nextToken = firstToken.Parent.GetLastToken(includeDirectives: true).GetNextToken(includeDirectives: true); 232firstToken = nextToken.Parent.GetLastToken(includeDirectives: true).GetNextToken(includeDirectives: true);
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
83var nextToken = leftToken.GetNextToken(includeSkipped: true);
Completion\KeywordRecommenders\UsingKeywordRecommender.cs (2)
107var nextToken = originalToken.GetNextToken(includeSkipped: true); 170var nextToken = originalToken.GetNextToken(includeSkipped: true);
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (3)
76TriviaLocation.AfterEndOfSpan => callsite.GetLastToken(includeZeroWidth: true).GetNextToken(includeZeroWidth: true), 78? body.OpenBraceToken.GetNextToken(includeZeroWidth: true) 79: expressionBody.ArrowToken.GetNextToken(includeZeroWidth: true),
ExtractMethod\CSharpSelectionValidator.cs (1)
504if (body.CloseBraceToken != lastToken.GetNextToken(includeZeroWidth: true))
GenerateType\CSharpGenerateTypeService.cs (3)
202var token = simpleName.GetLastToken().GetNextToken(); 222var token = simpleName.GetLastToken().GetNextToken(); 241var nextToken = simpleName.GetLastToken().GetNextToken();
IntroduceVariable\CSharpIntroduceVariableService.Rewriter.cs (1)
83var innerExpression = parenthesizedExpression.OpenParenToken.GetNextToken().GetRequiredParent();
SpellCheck\CSharpSpellcheckCodeFixProvider.cs (1)
60=> token.GetNextToken().Kind() == SyntaxKind.LessThanToken;
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
215var firstTokenAfterEmbeddedStatement = embeddedStatement.GetLastToken().GetNextToken();
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
181var nextToken = expressionStatement.GetLastToken().GetNextToken();
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
101var nextToken = token.GetNextToken();
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
82var nextToken = token.GetNextToken();
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
102var nextToken = token.GetNextToken();
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
286var firstBodyToken = converted.OpenBraceToken.GetNextToken(includeZeroWidth: true, includeSkipped: true);
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
192var nextToken = finalTypeDeclaration.OpenBraceToken.GetNextToken();
Structure\CSharpStructureHelpers.cs (2)
45var nextLeadingTrivia = compressEmptyLines ? lastToken.GetNextToken(includeZeroWidth: true, includeSkipped: true).LeadingTrivia : default; 94var nextToken = lastToken.GetNextToken(includeSkipped: true);
Structure\Providers\CollectionExpressionStructureProvider.cs (1)
37var nextToken = node.CloseBracketToken.GetNextToken();
Structure\Providers\InitializerExpressionStructureProvider.cs (1)
39var nextToken = node.CloseBraceToken.GetNextToken();
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
64? attributes.Last().GetLastToken().GetNextToken()
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Syntax\SyntaxNodeTests.cs (7)
883Assert.False(tree.GetCompilationUnitRoot().GetFirstToken().IsIncrementallyIdenticalTo(tree.GetCompilationUnitRoot().GetFirstToken().GetNextToken())); 1012token = token.GetNextToken(includeSkipped: true); 1042token = token.GetNextToken(includeSkipped: true); 1067token = token.GetNextToken(includeSkipped: false); 1089token = token.GetNextToken(); 1218token = token.GetNextToken(includeZeroWidth: true); 1239token = token.GetNextToken(includeZeroWidth: true);
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Classification\ClassificationHelpers.cs (1)
466return token.GetNextToken(includeZeroWidth: true).IsMissing;
Rename\CSharpRenameRewriterLanguageService.cs (1)
748token.GetNextToken().Kind() != SyntaxKind.DotToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\StatementSyntaxExtensions.cs (1)
31var nextToken = statement.GetLastToken().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (3)
234if (genericIdentifier.GetNextToken(includeSkipped: true).Kind() == SyntaxKind.LessThanToken) 261var token = genericIdentifier.GetNextToken(includeSkipped: true); 270var next = token.GetNextToken(includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
504var firstTokenAfterAttribute = lastAttributeToken.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (2)
127var firstTokenAfterTypeConstraint = currentToken.Parent.GetLastToken().GetNextToken(); 128var lastTokenForTypeConstraint = currentToken.Parent.GetLastToken().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (4)
116var nextToken = lastTokenOfLabel.GetNextToken(includeZeroWidth: true); 250AddIndentBlockOperation(list, bracePair.openBrace.GetNextToken(includeZeroWidth: true), bracePair.closeBrace.GetPreviousToken(includeZeroWidth: true)); 269AddIndentBlockOperation(list, bracketPair.openBracket.GetNextToken(includeZeroWidth: true), bracketPair.closeBracket.GetPreviousToken(includeZeroWidth: true)); 291SetAlignmentBlockOperation(list, bracePair.openBrace, bracePair.openBrace.GetNextToken(includeZeroWidth: true), bracePair.closeBrace, option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
104var startToken = baseToken.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
99var nextToken = token.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
564simpleName.GetLastToken().GetNextToken().Kind() == SyntaxKind.LessThanToken;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
417var nextToken = originalToken.GetNextToken(includeSkipped: true); 648if (token.GetNextToken(includeSkipped: true).Kind() != SyntaxKind.EqualsToken && 2489if (!token.IntersectsWith(position) && token.GetNextToken().GetNextToken().IsKind(SyntaxKind.EqualsToken))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
61var nextToken = lastToken.GetNextToken(includeZeroWidth: true, includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (2)
157constructorInitializer.ArgumentList.OpenParenToken.GetNextToken(includeZeroWidth: true), 203node.GetFirstToken(includeZeroWidth: true).GetNextToken(includeZeroWidth: true),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
254if (token.GetNextToken().IsEqualsTokenInAutoPropertyInitializers())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
228var nextToken = namespaceDeclaration.Usings.Last().GetLastToken().GetNextToken();
Microsoft.CodeAnalysis.EditorFeatures (2)
DocumentationComments\AbstractXmlTagCompletionCommandHandler.cs (2)
176var token = lessThanSlashToken.GetNextToken(includeDocumentationComments: true); 182token = token.GetNextToken(includeDocumentationComments: true);
Microsoft.CodeAnalysis.Features (12)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
216var nextOfEnd = !isEndTokenEOF ? endToken.GetNextToken(includeZeroWidth: true) : default;
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (1)
143if (IsOnStartLine(token.GetNextToken().SpanStart))
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (1)
95position = targetToken.GetNextToken(includeZeroWidth: true).SpanStart;
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeEmbeddedLanguage.cs (1)
56return previous.GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
117tokens[TriviaLocation.AfterEndOfSpan] = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (2)
218NextToken = tokens[TriviaLocation.BeforeBeginningOfSpan].GetNextToken(includeZeroWidth: true) 230NextToken = tokens[TriviaLocation.BeforeEndOfSpan].GetNextToken(includeZeroWidth: true)
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (1)
53expr.GetFirstToken().GetNextToken(),
SignatureHelp\CommonSignatureHelpUtilities.cs (1)
94var nextToken = lastToken.GetNextToken();
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
84var nextToken = endToken.GetNextToken();
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
158if (lastToken.GetNextToken(includeDirectives: true) == node.GetFirstToken())
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (1)
216result.Add(Edit.DeleteBetween(comma, comma.GetNextToken()));
Microsoft.CodeAnalysis.VisualBasic (2)
Syntax\SyntaxFacts.vb (2)
308Dim followingToken As SyntaxToken = possibleBlock.GetLastToken(includeZeroWidth:=True).GetNextToken() 890Return token.GetNextToken.Kind <> SyntaxKind.DotToken
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (42)
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
62Dim nextToken = lastToken.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (1)
18Dim nextToken = invocationExpression.GetLastToken().GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (2)
207Dim nextToken = node.CloseParenToken.GetNextToken() 325Dim nextNextToken = nextToken.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (2)
713Dim nextToken = statement.GetLastToken().GetNextToken() 725Dim nextToken = statement.GetLastToken().GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTokenExtensions.vb (1)
232Dim nextToken = token.GetNextToken()
src\Workspaces\VisualBasic\Portable\Formatting\Rules\BaseFormattingRule.vb (1)
58Dim nextToken = endToken.GetNextToken(includeZeroWidth:=True)
src\Workspaces\VisualBasic\Portable\Formatting\Rules\NodeBasedFormattingRule.vb (34)
59baseToken.GetNextToken(includeZeroWidth:=True), 67Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 76Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 86Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 91xmlNode.StartTag.LessThanToken.GetNextToken(includeZeroWidth:=True), 93xmlNode.StartTag.GreaterThanToken.GetNextToken(includeZeroWidth:=True), 107xmlEmbeddedExpression.LessThanPercentEqualsToken.GetNextToken(includeZeroWidth:=True), 119baseToken.GetNextToken(includeZeroWidth:=True), 123lastBeginningToken.GetNextToken(includeZeroWidth:=True), 314[namespace].NamespaceStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 321[module].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 328[class].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 335[struct].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 342[interface].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 349[enum].EnumStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 356[method].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 363[property].PropertyStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 370[event].EventStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 377[while].WhileStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 384[using].UsingStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 391[sync].SyncLockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 398[with].WithStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 406[ifBlock].IfStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 410[ifBlock].IfStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 418[elseif].ElseIfStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 425[else].ElseStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 433[try].TryStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 437[try].TryStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 445[catch].CatchStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 452[finally].FinallyStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 459[select].SelectStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 466[case].CaseStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 473[do].DoStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 479Return ValueTuple.Create([for].ForOrForEachStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), GetEndTokenForForBlock([for]))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (12)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\CallStatementSyntaxExtensions.vb (1)
13Dim nextToken = callStatement.CallKeyword.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (2)
18token = token.GetNextToken(includeZeroWidth:=True) 70token = token.GetNextToken(includeZeroWidth:=True)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ObjectCreationExpressionExtensions.vb (1)
21Dim nextToken = objectCreationExpression.GetLastToken.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (5)
64Dim nextToken = endToken.GetNextToken(includeZeroWidth:=True) 69Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 101Dim baseToken = openBrace.GetNextToken(includeZeroWidth:=True) 104Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 218SpecializedCollections.SingletonEnumerable(baseToken.GetNextToken(includeZeroWidth:=True)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (3)
180Dim visibleTokenOnCurrentLine As SyntaxToken = lastVisibleTokenOnPreviousLine.GetNextToken() 196If lastVisibleTokenOnPreviousLine.GetNextToken(includeZeroWidth:=True).IsMissing Then 289If IsCommaInParameters(token) AndAlso (token.Span.End <= position AndAlso position <= token.GetNextToken().SpanStart) Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (4)
AutomaticCompletion\AutomaticLineEnderCommandHandler.vb (1)
102Dim nextToken = nonMissingToken.GetNextToken(includeZeroWidth:=True)
EndConstructGeneration\EndConstructCommandHandler.vb (1)
178Dim nextToken = lastToken.GetNextToken()
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (1)
25Dim tokenNextToLambda = originalNode.GetLastToken().GetNextToken()
Utilities\NavigationPointHelpers.vb (1)
36Return eventBlock.EventStatement.AttributeLists.Last().GetLastToken().GetNextToken().SpanStart
Microsoft.CodeAnalysis.VisualBasic.Features (18)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
216Dim nextNode = endStatement.Parent.GetLastToken().GetNextToken().Parent
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (2)
109Dim tokenAfterContinueToken = continueStatement.ContinueKeyword.GetNextToken(includeSkipped:=True) 141Dim tokenAfterExitToken = exitStatement.ExitKeyword.GetNextToken(includeSkipped:=True)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (1)
310Dim nextToken = localDeclaration.GetLastToken().GetNextToken()
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
339Dim nextToken = token.GetNextToken()
ExtractMethod\VisualBasicMethodExtractor.TriviaResult.vb (2)
63Return callsite.GetLastToken(includeZeroWidth:=True).GetNextToken(includeZeroWidth:=True) 65Return method.BlockStatement.GetLastToken(includeZeroWidth:=True).GetNextToken(includeZeroWidth:=True)
ExtractMethod\VisualBasicSelectionValidator.vb (1)
611Dim nextToken = lastToken.GetNextToken(includeZeroWidth:=True)
GenerateType\VisualBasicGenerateTypeService.vb (3)
132Dim token = simpleName.GetLastToken().GetNextToken() 145Dim token = simpleName.GetLastToken().GetNextToken() 160Dim nextToken = simpleName.GetLastToken().GetNextToken()
IntroduceVariable\VisualBasicIntroduceVariableService.Rewriter.vb (1)
40Dim innerExpression = parenthesizedExpression.OpenParenToken.GetNextToken().Parent
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
88Dim nextToken = node.GetLastToken().GetNextToken()
SpellCheck\VisualBasicSpellCheckCodeFixProvider.vb (3)
61Return nameToken.GetNextToken().Kind() = SyntaxKind.OpenParenToken AndAlso 62nameToken.GetNextToken().GetNextToken().Kind() = SyntaxKind.OfKeyword
src\Analyzers\VisualBasic\Analyzers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
62Dim nextToken = lastToken.GetNextToken()
Structure\Providers\CollectionInitializerStructureProvider.vb (1)
37Dim nextToken = node.CloseBraceToken.GetNextToken()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
FlowAnalysis\FlowTestBase.vb (3)
148Dim nextToken = token.GetNextToken() 157token = token.GetNextToken() 164token = token.GetNextToken()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
2220token = token.GetNextToken() 2234token = token.GetNextToken(includeZeroWidth:=True)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (56)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (3)
482Dim nextToken = regularIf.GetLastToken.GetNextToken 492Dim nextToken = regularElseIf.GetLastToken.GetNextToken 502Dim nextToken = ifDirective.GetLastToken.GetNextToken
Formatting\Rules\BaseFormattingRule.vb (1)
58Dim nextToken = endToken.GetNextToken(includeZeroWidth:=True)
Formatting\Rules\NodeBasedFormattingRule.vb (34)
59baseToken.GetNextToken(includeZeroWidth:=True), 67Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 76Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 86Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 91xmlNode.StartTag.LessThanToken.GetNextToken(includeZeroWidth:=True), 93xmlNode.StartTag.GreaterThanToken.GetNextToken(includeZeroWidth:=True), 107xmlEmbeddedExpression.LessThanPercentEqualsToken.GetNextToken(includeZeroWidth:=True), 119baseToken.GetNextToken(includeZeroWidth:=True), 123lastBeginningToken.GetNextToken(includeZeroWidth:=True), 314[namespace].NamespaceStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 321[module].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 328[class].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 335[struct].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 342[interface].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 349[enum].EnumStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 356[method].BlockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 363[property].PropertyStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 370[event].EventStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 377[while].WhileStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 384[using].UsingStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 391[sync].SyncLockStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 398[with].WithStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 406[ifBlock].IfStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 410[ifBlock].IfStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 418[elseif].ElseIfStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 425[else].ElseStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 433[try].TryStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 437[try].TryStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 445[catch].CatchStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 452[finally].FinallyStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 459[select].SelectStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 466[case].CaseStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 473[do].DoStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), 479Return ValueTuple.Create([for].ForOrForEachStatement.GetLastToken().GetNextToken(includeZeroWidth:=True), GetEndTokenForForBlock([for]))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\InvocationExpressionSyntaxExtensions.vb (1)
18Dim nextToken = invocationExpression.GetLastToken().GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (2)
207Dim nextToken = node.CloseParenToken.GetNextToken() 325Dim nextNextToken = nextToken.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (2)
713Dim nextToken = statement.GetLastToken().GetNextToken() 725Dim nextToken = statement.GetLastToken().GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTokenExtensions.vb (1)
232Dim nextToken = token.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\CallStatementSyntaxExtensions.vb (1)
13Dim nextToken = callStatement.CallKeyword.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (2)
18token = token.GetNextToken(includeZeroWidth:=True) 70token = token.GetNextToken(includeZeroWidth:=True)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ObjectCreationExpressionExtensions.vb (1)
21Dim nextToken = objectCreationExpression.GetLastToken.GetNextToken()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (5)
64Dim nextToken = endToken.GetNextToken(includeZeroWidth:=True) 69Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 101Dim baseToken = openBrace.GetNextToken(includeZeroWidth:=True) 104Dim startToken = baseToken.GetNextToken(includeZeroWidth:=True) 218SpecializedCollections.SingletonEnumerable(baseToken.GetNextToken(includeZeroWidth:=True)),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (3)
180Dim visibleTokenOnCurrentLine As SyntaxToken = lastVisibleTokenOnPreviousLine.GetNextToken() 196If lastVisibleTokenOnPreviousLine.GetNextToken(includeZeroWidth:=True).IsMissing Then 289If IsCommaInParameters(token) AndAlso (token.Span.End <= position AndAlso position <= token.GetNextToken().SpanStart) Then
Microsoft.CodeAnalysis.Workspaces (22)
CodeCleanup\AbstractCodeCleanerService.cs (3)
244return previousToken.GetNextToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true).SpanStart; 334var nextToken = endToken.GetNextToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true); 375nextToken = endToken.GetNextToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
636: token.GetNextToken(includeZeroWidth: false, includeSkipped: includeSkipped, includeDirectives: includeDirectives, includeDocumentationComments: includeDocumentationComments); 643token = token.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
92var nextToken = token.GetNextToken(includeZeroWidth, includeSkipped, includeDirectives, includeDocumentationComments);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (3)
61position <= token.GetNextToken(includeZeroWidth: true).SpanStart) 74var nextToken = token.GetNextToken(includeZeroWidth: true); 343var nextToken = operation.EndToken.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (1)
174var nextToken = tokenData.Token.GetNextToken(includeZeroWidth: true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
293var nextToken = lastToken.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (2)
164token2 = token2.GetNextToken(); 195token2 = token2.GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
368var nextToken = node.GetLastToken().GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (6)
110endToken = endToken.GetNextToken(); 116endToken = endToken.GetNextToken(); 193for (var token = token1.GetNextToken(includeZeroWidth: true); token.FullSpan.End <= token2.FullSpan.Start; token = token.GetNextToken(includeZeroWidth: true)) 272var nextToken = token.GetNextToken(); 363var endToken = root.FindTokenFromEnd(span.End).GetNextToken();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (1)
36var nextToken = lastToken.GetNextToken(includeZeroWidth: true, includeSkipped: true);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
178var nextToken = commaToken.GetNextToken();
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
CodeCleanup\CodeCleanupTests.cs (2)
351var nextToken = member.GetLastToken().GetNextToken().GetNextToken();
CodeCleanup\Extensions.cs (1)
21var endToken = node.GetLastToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true).GetNextToken(includeZeroWidth: true, includeSkipped: true, includeDirectives: true, includeDocumentationComments: true);
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelService.cs (2)
3204var endToken = root.FindToken(span.End).GetNextToken(); 3290var nextToken = lastToken.GetNextToken();
CodeModel\CSharpCodeModelService.NodeLocator.cs (1)
156var tokenAfterOpenBrace = openBrace.GetNextToken();
CodeModel\SyntaxNodeExtensions.cs (1)
65return attributeLists.Last().GetLastToken().GetNextToken();
LanguageService\CSharpHelpContextService.cs (1)
437text = token.GetNextToken().IsKind(SyntaxKind.StaticKeyword)
Microsoft.VisualStudio.LanguageServices.VisualBasic (8)
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (5)
535startPosition = declareStatement.AttributeLists.Last().GetLastToken().GetNextToken().SpanStart 600startPosition = methodStatement.AttributeLists.Last().GetLastToken().GetNextToken().SpanStart 717startPosition = propertyStatement.AttributeLists.Last().GetLastToken().GetNextToken().SpanStart 845startPosition = eventStatement.AttributeLists.Last().GetLastToken().GetNextToken().SpanStart 926startPosition = delegateStatement.AttributeLists.Last().GetLastToken().GetNextToken().SpanStart
CodeModel\VisualBasicCodeModelService.vb (1)
861Dim nextToken = token.GetNextToken(includeSkipped:=True)
Venus\VisualBasicContainedLanguage.vb (2)
206Dim helperToken = endToken.GetNextToken(includeSkipped:=True) 212Dim asToken = helperToken.GetNextToken(includeSkipped:=True)