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