89 references to PeekToken
Microsoft.CodeAnalysis.VisualBasic (89)
Parser\ParseExpression.vb (12)
207
Dim nextToken =
PeekToken
(1)
214
nextToken =
PeekToken
(2)
415
If start.Kind = SyntaxKind.QuestionToken AndAlso CanStartConsequenceExpression(Me.
PeekToken
(1).Kind, qualified:=False) Then
481
ElseIf [Next].Kind = SyntaxKind.QuestionToken AndAlso CanStartConsequenceExpression(Me.
PeekToken
(1).Kind, qualified:=True) Then
881
If
PeekToken
(1).Kind = SyntaxKind.OpenBraceToken OrElse
PeekToken
(1).Kind = SyntaxKind.StatementTerminatorToken Then
908
PeekToken
(1).Kind = SyntaxKind.OpenBraceToken Then
1092
If
PeekToken
(1).Kind = SyntaxKind.DotToken Then
1235
PeekToken
(1).Kind = SyntaxKind.ColonEqualsToken) Then
1274
PeekToken
(1).Kind = SyntaxKind.ColonEqualsToken) Then
1401
PeekToken
(1).Kind = SyntaxKind.ColonEqualsToken Then
1502
PeekToken
(1).Kind = SyntaxKind.ColonEqualsToken Then
Parser\ParseQuery.vb (22)
20
PeekToken
(1).Kind = SyntaxKind.EqualsToken OrElse
21
(
PeekToken
(1).Kind = SyntaxKind.QuestionToken AndAlso
PeekToken
(2).Kind = SyntaxKind.EqualsToken)) Then
91
Debug.Assert(
PeekToken
(1).Kind = SyntaxKind.OpenParenToken)
177
PeekToken
(1).Kind = SyntaxKind.EqualsToken _
179
(
PeekToken
(1).Kind = SyntaxKind.QuestionToken AndAlso
PeekToken
(2).Kind = SyntaxKind.EqualsToken)) Then
197
PeekToken
(1).Kind <> SyntaxKind.OpenParenToken Then
313
(
PeekToken
(1).Kind = SyntaxKind.InKeyword OrElse
314
PeekToken
(1).Kind = SyntaxKind.EqualsToken) Then
434
(
PeekToken
(1).Kind = SyntaxKind.InKeyword OrElse
435
PeekToken
(1).Kind = SyntaxKind.EqualsToken) Then
546
Dim current As SyntaxToken =
PeekToken
(curIndex)
551
current =
PeekToken
(curIndex)
593
current =
PeekToken
(curIndex)
598
current =
PeekToken
(curIndex + 1)
606
current =
PeekToken
(curIndex)
787
PeekToken
(1).Kind = SyntaxKind.InKeyword Then
1049
Not IsContinuableQueryOperator(
PeekToken
(1)) Then
1146
Dim tokenAfterEOL =
PeekToken
(1)
1232
Debug.Assert(pToken.Text Is
PeekToken
(1).Text)
1248
Dim nextToken =
PeekToken
(2)
Parser\Parser.vb (35)
562
PeekToken
(1).Kind = SyntaxKind.LessThanToken Then
564
nextToken =
PeekToken
(1)
574
If
PeekToken
(1).Kind = SyntaxKind.GreaterThanToken Then
576
nextToken =
PeekToken
(1)
583
ElseIf
PeekToken
(1).Kind = SyntaxKind.LessThanToken Then
585
nextToken =
PeekToken
(1)
661
Dim nextToken As SyntaxToken =
PeekToken
(1)
664
nextToken =
PeekToken
(2)
842
Dim possibleDeclarationStart =
PeekToken
(1).Kind
944
If
PeekToken
(1).Kind = SyntaxKind.IfKeyword Then
1060
If contextualKind = SyntaxKind.CustomKeyword AndAlso
PeekToken
(1).Kind = SyntaxKind.EventKeyword Then
1100
If
PeekToken
(1).Kind = SyntaxKind.OpenParenToken Then
1104
ElseIf contextualKind = SyntaxKind.CustomKeyword AndAlso
PeekToken
(1).Kind = SyntaxKind.EventKeyword Then ' BeginsEvent
1109
Dim nextToken =
PeekToken
(1)
1185
If (IsValidStatementTerminator(
PeekToken
(1)) OrElse
PeekToken
(1).Kind = SyntaxKind.OpenParenToken) AndAlso
1221
If CanStartConsequenceExpression(Me.
PeekToken
(1).Kind, qualified:=False) Then
1303
Dim nextToken =
PeekToken
(1)
1305
IsValidStatementTerminator(
PeekToken
(2)) AndAlso
1700
Dim nextToken =
PeekToken
(1)
1717
Dim nextToken =
PeekToken
(1)
1739
Select Case
PeekToken
(i).Kind
1748
Return GetEndStatementKindFromKeyword(
PeekToken
(i + 1).Kind)
1845
Dim token =
PeekToken
(i)
1988
Dim nextToken As SyntaxToken =
PeekToken
(1)
2001
Dim nextToken As SyntaxToken =
PeekToken
(1)
2529
If CurrentToken.Kind = SyntaxKind.StatementTerminatorToken AndAlso
PeekToken
(1).Kind = SyntaxKind.OpenBraceToken Then
2689
Dim nextToken As SyntaxToken =
PeekToken
(1)
2837
If Start.Kind = SyntaxKind.NewKeyword AndAlso
PeekToken
(1).Kind = SyntaxKind.IdentifierToken Then
4173
Dim peek =
PeekToken
(1)
4507
If
PeekToken
(1).Kind = SyntaxKind.CloseParenToken Then
4779
PeekToken
(1).Kind = SyntaxKind.EqualsToken) OrElse
5238
Dim nextToken =
PeekToken
(1)
5827
Dim nextToken =
PeekToken
(1)
5901
TryTokenAsContextualKeyword(
PeekToken
(1), kind, keyword) Then
Parser\ParseScan.vb (9)
28
If
PeekToken
(i).Kind = SyntaxKind.StatementTerminatorToken Then
29
If
PeekToken
(i + 1).Kind <> SyntaxKind.EmptyToken Then
38
Dim t1 =
PeekToken
(1)
40
Dim t2 =
PeekToken
(2)
154
Select Case
PeekToken
(2).Kind
216
nextToken =
PeekToken
(i)
401
Dim nextToken =
PeekToken
(1)
418
Debug.Assert(If(offset = 0, CurrentToken,
PeekToken
(offset)).IsEndOfLine)
420
Dim kind =
PeekToken
(offset + 1).Kind
Parser\ParseStatement.vb (11)
444
Debug.Assert(CurrentToken.Kind = SyntaxKind.ElseIfKeyword OrElse (CurrentToken.Kind = SyntaxKind.ElseKeyword AndAlso
PeekToken
(1).Kind = SyntaxKind.IfKeyword),
788
Select Case
PeekToken
(1).Kind
1017
Dim nextToken As SyntaxToken =
PeekToken
(1)
1029
PeekToken
(2).Kind = SyntaxKind.IntegerLiteralToken AndAlso
1030
PeekToken
(2).ValueText = "1" Then
1034
label = SyntaxFactory.NumericLabel(
PeekToken
(2))
1419
(IsValidStatementTerminator(
PeekToken
(1)) OrElse
PeekToken
(1).Kind = SyntaxKind.OpenParenToken) AndAlso
1570
Return IsFirstStatementOnLine(CurrentToken) AndAlso
PeekToken
(1).Kind = SyntaxKind.ColonToken
1797
Dim nextToken As SyntaxToken =
PeekToken
(1)
1866
Dim lookahead =
PeekToken
(1)