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