20 references to SyntaxSubKind
Microsoft.CodeAnalysis.VisualBasic (20)
Parser\ParseXml.vb (9)
329
If badToken.SubKind =
SyntaxSubKind
.BeginDocTypeToken Then
367
DirectCast(CurrentToken, BadTokenSyntax).SubKind =
SyntaxSubKind
.BeginDocTypeToken, "ParseDTD called on wrong token.")
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
476
If badToken.SubKind =
SyntaxSubKind
.LessThanExclamationToken Then
675
If badToken.SubKind =
SyntaxSubKind
.BeginDocTypeToken Then
1794
If badToken.SubKind =
SyntaxSubKind
.BeginDocTypeToken Then
Scanner\TokenFactories.vb (1)
742
Dim result1 = SyntaxFactory.BadToken(
SyntaxSubKind
.None, spelling, precedingTrivia.Node, followingTrivia.Node)
Scanner\XmlTokenFactories.vb (6)
75
Return XmlMakeBadToken(
SyntaxSubKind
.None, precedingTrivia, length, id)
78
Private Function XmlMakeBadToken(subkind As
SyntaxSubKind
, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, id As ERRID) As BadTokenSyntax
344
Return XmlMakeBadToken(
SyntaxSubKind
.BeginDocTypeToken, precedingTrivia, 9, ERRID.ERR_DTDNotSupported)
349
Return XmlMakeBadToken(
SyntaxSubKind
.LessThanExclamationToken, precedingTrivia, 2, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_Syntax))
354
Return XmlMakeBadToken(
SyntaxSubKind
.OpenBracketToken, precedingTrivia, 1, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_IllegalXmlNameChar))
360
Return XmlMakeBadToken(
SyntaxSubKind
.CloseBracketToken, precedingTrivia, 1, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_IllegalXmlNameChar))
Syntax\InternalSyntax\BadTokenSyntax.vb (3)
17
Private ReadOnly _subKind As
SyntaxSubKind
19
Friend Sub New(kind As SyntaxKind, subKind As
SyntaxSubKind
, errors As DiagnosticInfo(), annotations As SyntaxAnnotation(), text As String, leadingTrivia As GreenNode, trailingTrivia As GreenNode)
25
Friend ReadOnly Property SubKind As
SyntaxSubKind
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
448
Friend Shared Function BadToken(SubKind As
SyntaxSubKind
, text As String, precedingTrivia As GreenNode, followingTrivia As GreenNode) As BadTokenSyntax