15 references to IsValidStatementTerminator
Microsoft.CodeAnalysis.VisualBasic (15)
Parser\ParseInterpolatedString.vb (1)
246
If Not
IsValidStatementTerminator
(CurrentToken) Then
Parser\Parser.vb (5)
1185
If (
IsValidStatementTerminator
(PeekToken(1)) OrElse PeekToken(1).Kind = SyntaxKind.OpenParenToken) AndAlso
1305
IsValidStatementTerminator
(PeekToken(2)) AndAlso
1718
Dim possibleBlockKeyword = If(
IsValidStatementTerminator
(nextToken), Nothing, nextToken)
3957
ElseIf operatorKind <> SyntaxKind.OpenParenToken AndAlso Not
IsValidStatementTerminator
(operatorToken) Then
4962
ElseIf Not
IsValidStatementTerminator
(CurrentToken) Then
Parser\ParseScan.vb (6)
80
Return If(Context.IsWithinSingleLineLambda, CanFollowExpression(T),
IsValidStatementTerminator
(T)) OrElse
88
IsValidStatementTerminator
(nextToken)) OrElse (Context.IsLineIf AndAlso nextToken.Kind = SyntaxKind.ElseKeyword)
121
Return KeywordTable.CanFollowExpression(t.Kind) OrElse
IsValidStatementTerminator
(t)
174
Return
IsValidStatementTerminator
(t)
209
While Not
IsValidStatementTerminator
(nextToken)
249
If
IsValidStatementTerminator
(CurrentToken) OrElse CurrentToken.Kind = SyntaxKind.EmptyToken Then
Parser\ParseStatement.vb (3)
1064
If Not
IsValidStatementTerminator
(CurrentToken) Then
1419
(
IsValidStatementTerminator
(PeekToken(1)) OrElse PeekToken(1).Kind = SyntaxKind.OpenParenToken) AndAlso
1748
Debug.Assert(operand Is Nothing OrElse Not
IsValidStatementTerminator
(startToken), "Unexpected: we should have bailed on the token after this return statement")