33 references to ThenKeyword
Microsoft.CodeAnalysis.VisualBasic (17)
Generated\Syntax.xml.Internal.Generated.vb (2)
38508
Debug.Assert(thenKeyword IsNot Nothing AndAlso thenKeyword.Kind = SyntaxKind.
ThenKeyword
)
50574
Debug.Assert(thenKeyword IsNot Nothing AndAlso thenKeyword.Kind = SyntaxKind.
ThenKeyword
)
Generated\Syntax.xml.Main.Generated.vb (5)
14073
Case SyntaxKind.
ThenKeyword
14095
Return SyntaxFactory.SingleLineIfStatement(SyntaxFactory.Token(SyntaxKind.IfKeyword), condition, SyntaxFactory.Token(SyntaxKind.
ThenKeyword
), statements, elseClause)
14106
Return SyntaxFactory.SingleLineIfStatement(SyntaxFactory.Token(SyntaxKind.IfKeyword), condition, SyntaxFactory.Token(SyntaxKind.
ThenKeyword
), Nothing, Nothing)
45126
SyntaxKind.
ThenKeyword
,
45618
Case SyntaxKind.
ThenKeyword
Parser\ParseConditional.vb (1)
152
If CurrentToken.Kind = SyntaxKind.
ThenKeyword
Then
Parser\ParseStatement.vb (4)
418
condition = ResyncAt(condition, SyntaxKind.
ThenKeyword
)
422
TryGetToken(SyntaxKind.
ThenKeyword
, thenKeyword)
476
condition = ResyncAt(condition, SyntaxKind.
ThenKeyword
)
480
TryGetToken(SyntaxKind.
ThenKeyword
, thenKeyword)
Scanner\KeywordTable.vb (1)
156
SyntaxKind.
ThenKeyword
, CanFollowExpr,
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
292
SyntaxKind.
ThenKeyword
,
Syntax\SyntaxKindFacts.vb (2)
214
SyntaxKind.
ThenKeyword
,
353
SyntaxKind.
ThenKeyword
,
Syntax\SyntaxNodeFactories.vb (1)
607
SyntaxKind.
ThenKeyword
,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (1)
422
lastToken.Kind = SyntaxKind.
ThenKeyword
Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\Statements\ElseKeywordRecommender.vb (1)
53
If context.TargetToken.IsKind(SyntaxKind.
ThenKeyword
) AndAlso
InitializeParameter\VisualBasicAddParameterCheckCodeRefactoringProvider.vb (1)
56
ifStatement:=SyntaxFactory.IfStatement(SyntaxFactory.Token(SyntaxKind.IfKeyword), condition, SyntaxFactory.Token(SyntaxKind.
ThenKeyword
)),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (12)
Classification\ClassificationHelpers.vb (1)
102
SyntaxKind.
ThenKeyword
,
Classification\Worker.vb (1)
195
SyntaxKind.
ThenKeyword
,
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (7)
378
Return AddMissingOrOmittedTokenTransform(node, MyBase.VisitIfStatement(node), Function(n) n.ThenKeyword, SyntaxKind.
ThenKeyword
)
382
Return AddMissingOrOmittedTokenTransform(node, MyBase.VisitIfDirectiveTrivia(node), Function(n) n.ThenKeyword, SyntaxKind.
ThenKeyword
)
386
Return AddMissingOrOmittedTokenTransform(node, MyBase.VisitElseIfStatement(node), Function(n) n.ThenKeyword, SyntaxKind.
ThenKeyword
)
478
Case SyntaxKind.
ThenKeyword
531
Return If(parent.GetAncestor(Of MultiLineIfBlockSyntax)() IsNot Nothing, CreateOmittedToken(token, SyntaxKind.
ThenKeyword
), token)
536
Return CreateOmittedToken(token, SyntaxKind.
ThenKeyword
)
538
Return If(parent.GetAncestor(Of ElseIfBlockSyntax)() IsNot Nothing, CreateOmittedToken(token, SyntaxKind.
ThenKeyword
), token)
CodeGeneration\VisualBasicSyntaxGenerator.vb (2)
182
SyntaxFactory.Token(SyntaxKind.
ThenKeyword
))
201
SyntaxFactory.ElseIfStatement(SyntaxFactory.Token(SyntaxKind.ElseIfKeyword), mifBlock.IfStatement.Condition, SyntaxFactory.Token(SyntaxKind.
ThenKeyword
)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (1)
422
lastToken.Kind = SyntaxKind.
ThenKeyword
Then
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ParenthesizedExpressionSyntaxExtensions.vb (1)
422
lastToken.Kind = SyntaxKind.
ThenKeyword
Then