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