18 references to BadTokenSyntax
Microsoft.CodeAnalysis.VisualBasic (18)
Parser\ParseXml.vb (10)
327
Dim badToken = DirectCast(CurrentToken,
BadTokenSyntax
)
367
DirectCast(CurrentToken,
BadTokenSyntax
).SubKind = SyntaxSubKind.BeginDocTypeToken, "ParseDTD called on wrong token.")
371
Dim beginDocType = DirectCast(CurrentToken,
BadTokenSyntax
)
419
If CurrentToken.Kind <> SyntaxKind.BadToken OrElse DirectCast(CurrentToken,
BadTokenSyntax
).SubKind <> SyntaxSubKind.OpenBracketToken Then
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
474
Dim badToken = DirectCast(CurrentToken,
BadTokenSyntax
)
673
Dim badToken = DirectCast(CurrentToken,
BadTokenSyntax
)
1792
Dim badToken = DirectCast(CurrentToken,
BadTokenSyntax
)
Scanner\XmlTokenFactories.vb (7)
74
Private Function XmlMakeBadToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, id As ERRID) As
BadTokenSyntax
78
Private Function XmlMakeBadToken(subkind As SyntaxSubKind, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, id As ERRID) As
BadTokenSyntax
107
Dim errResult1 = DirectCast(result1.SetDiagnostics({diagnostic}),
BadTokenSyntax
)
342
Private Function XmlMakeBeginDTDToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
BadTokenSyntax
347
Private Function XmlLessThanExclamationToken(state As ScannerState, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
BadTokenSyntax
352
Private Function XmlMakeOpenBracketToken(state As ScannerState, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
BadTokenSyntax
357
Private Function XmlMakeCloseBracketToken(state As ScannerState, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
BadTokenSyntax
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
448
Friend Shared Function BadToken(SubKind As SyntaxSubKind, text As String, precedingTrivia As GreenNode, followingTrivia As GreenNode) As
BadTokenSyntax