59 references to IfKeyword
Microsoft.CodeAnalysis.VisualBasic (59)
Generated\Syntax.xml.Internal.Generated.vb (12)
34051Debug.Assert(blockKeyword IsNot Nothing AndAlso blockKeyword.Kind = SyntaxKind.IfKeyword) 38506Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 38583Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 43298Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 43337Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 45910Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 46117Debug.Assert(blockKeyword IsNot Nothing AndAlso blockKeyword.Kind = SyntaxKind.IfKeyword) 50572Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 50649Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 55364Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 55403Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword) 57976Debug.Assert(ifKeyword IsNot Nothing AndAlso ifKeyword.Kind = SyntaxKind.IfKeyword)
Generated\Syntax.xml.Main.Generated.vb (21)
5730Case SyntaxKind.IfKeyword : 5764Return SyntaxFactory.EndIfStatement(SyntaxFactory.Token(SyntaxKind.EndKeyword), SyntaxFactory.Token(SyntaxKind.IfKeyword)) 6578Return SyntaxKind.IfKeyword 13956Case SyntaxKind.IfKeyword 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) 14243Case SyntaxKind.IfKeyword 14370Return SyntaxFactory.IfStatement(SyntaxFactory.Token(SyntaxKind.IfKeyword), condition, Nothing) 34981Case SyntaxKind.IfKeyword 35239Return SyntaxFactory.BinaryConditionalExpression(SyntaxFactory.Token(SyntaxKind.IfKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), firstExpression, SyntaxFactory.Token(SyntaxKind.CommaToken), secondExpression, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 35273Case SyntaxKind.IfKeyword 35651Return SyntaxFactory.TernaryConditionalExpression(SyntaxFactory.Token(SyntaxKind.IfKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), condition, SyntaxFactory.Token(SyntaxKind.CommaToken), whenTrue, SyntaxFactory.Token(SyntaxKind.CommaToken), whenFalse, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 43129Case SyntaxKind.IfKeyword : 43273Case SyntaxKind.IfKeyword : 43424Case SyntaxKind.IfKeyword : 43605Case SyntaxKind.IfKeyword 43617Return SyntaxFactory.EndIfDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.EndKeyword), SyntaxFactory.Token(SyntaxKind.IfKeyword)) 44042SyntaxKind.IfKeyword, 45058SyntaxKind.IfKeyword, 45342SyntaxKind.IfKeyword, 45482Case SyntaxKind.IfKeyword
Parser\BlockContexts\BlockContext.vb (1)
683endStmt = SyntaxFactory.EndIfStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword))
Parser\BlockContexts\IfBlockContext.vb (1)
79endStmt = SyntaxFactory.EndIfStatement(InternalSyntaxFactory.MissingKeyword(SyntaxKind.EndKeyword), InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword))
Parser\ParseConditional.vb (6)
47Case SyntaxKind.IfKeyword 118If CurrentToken.Kind <> SyntaxKind.IfKeyword Then 140Debug.Assert(CurrentToken.Kind = SyntaxKind.IfKeyword OrElse CurrentToken.Kind = SyntaxKind.ElseIfKeyword) 159If ifKeyword.Kind = SyntaxKind.IfKeyword AndAlso elseKeyword Is Nothing Then 176If CurrentToken.Kind = SyntaxKind.IfKeyword Then 219Dim statement = SyntaxFactory.EndIfDirectiveTrivia(hashToken, endKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword))
Parser\ParseExpression.vb (2)
377Case SyntaxKind.IfKeyword 550Debug.Assert(CurrentToken.Kind = SyntaxKind.IfKeyword)
Parser\Parser.vb (4)
938Case SyntaxKind.IfKeyword 944If PeekToken(1).Kind = SyntaxKind.IfKeyword Then 1765Case SyntaxKind.IfKeyword 5638SyntaxKind.IfKeyword,
Parser\ParseStatement.vb (3)
410Debug.Assert(CurrentToken.Kind = SyntaxKind.IfKeyword, "ParseIfConstruct called on wrong token.") 444Debug.Assert(CurrentToken.Kind = SyntaxKind.ElseIfKeyword OrElse (CurrentToken.Kind = SyntaxKind.ElseKeyword AndAlso PeekToken(1).Kind = SyntaxKind.IfKeyword), 506statement = SyntaxFactory.EndIfStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword))
Scanner\Directives.vb (1)
573ElseIf nextKind = SyntaxKind.IfKeyword Then
Scanner\KeywordTable.vb (1)
87SyntaxKind.IfKeyword, None,
Scanner\Scanner.vb (1)
1282Return MakeKeyword(SyntaxKind.IfKeyword, "If", precedingTrivia)
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
224SyntaxKind.IfKeyword,
Syntax\SyntaxKindFacts.vb (4)
63Case SyntaxKind.IfKeyword, 146SyntaxKind.IfKeyword, 352SyntaxKind.IfKeyword, 830{"if", SyntaxKind.IfKeyword},
Syntax\SyntaxNodeFactories.vb (1)
523SyntaxKind.IfKeyword,