20 references to BadToken
Microsoft.CodeAnalysis.VisualBasic (20)
CommandLine\VisualBasicCommandLineParser.vb (1)
2060ElseIf tokens.Current.Kind = SyntaxKind.BadToken Then
Parser\ParseConditional.vb (1)
25CurrentToken.Kind = SyntaxKind.BadToken Then
Parser\ParseStatement.vb (1)
1128CurrentToken.Kind <> SyntaxKind.BadToken AndAlso
Parser\ParseTerminal.vb (1)
65If (CurrentToken.Kind = SyntaxKind.BadToken AndAlso CurrentToken.Text = "_") Then
Parser\ParseXml.vb (13)
326Case SyntaxKind.BadToken 366Debug.Assert(CurrentToken.Kind = SyntaxKind.BadToken AndAlso 419If CurrentToken.Kind <> SyntaxKind.BadToken OrElse DirectCast(CurrentToken, BadTokenSyntax).SubKind <> SyntaxSubKind.OpenBracketToken Then 420unexpected = ResyncAt(ScannerState.DocType, {SyntaxKind.BadToken, 433If CurrentToken.Kind = SyntaxKind.BadToken AndAlso DirectCast(CurrentToken, BadTokenSyntax).SubKind = SyntaxSubKind.OpenBracketToken Then 441If CurrentToken.Kind = SyntaxKind.BadToken AndAlso DirectCast(CurrentToken, BadTokenSyntax).SubKind = SyntaxSubKind.LessThanExclamationToken Then 447If CurrentToken.Kind <> SyntaxKind.BadToken OrElse DirectCast(CurrentToken, BadTokenSyntax).SubKind <> SyntaxSubKind.CloseBracketToken Then 448unexpected = ResyncAt(ScannerState.DocType, {SyntaxKind.BadToken, 472Case SyntaxKind.BadToken 585SyntaxKind.BadToken), 672Case SyntaxKind.BadToken 1740SyntaxKind.BadToken), 1791Case SyntaxKind.BadToken
Scanner\Directives.vb (1)
593Case SyntaxKind.DateLiteralToken, SyntaxKind.BadToken
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
449Return New BadTokenSyntax(SyntaxKind.BadToken, SubKind, Nothing, Nothing, text, precedingTrivia, followingTrivia)
Syntax\SyntaxNodeFactories.vb (1)
752Return New SyntaxToken(Nothing, New InternalSyntax.BadTokenSyntax(SyntaxKind.BadToken, InternalSyntax.SyntaxSubKind.None, Nothing, Nothing, text,