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