12 types derived from SyntaxToken
Microsoft.CodeAnalysis.VisualBasic (12)
Generated\Syntax.xml.Internal.Generated.vb (9)
25524
Inherits
SyntaxToken
25563
Inherits
SyntaxToken
25601
Inherits
SyntaxToken
25651
Inherits
SyntaxToken
25702
Inherits
SyntaxToken
25753
Inherits
SyntaxToken
25818
Inherits
SyntaxToken
25869
Inherits
SyntaxToken
25921
Inherits
SyntaxToken
Syntax\InternalSyntax\IdentifierTokenSyntax.vb (1)
19
Inherits
SyntaxToken
Syntax\InternalSyntax\SyntaxLiterals.vb (2)
104
Inherits
SyntaxToken
202
Inherits
SyntaxToken
435 references to SyntaxToken
Microsoft.CodeAnalysis.VisualBasic (435)
Generated\Syntax.xml.Internal.Generated.vb (133)
5337
Friend ReadOnly _operatorToken as
SyntaxToken
5340
Friend Sub New(ByVal kind As SyntaxKind, attributeLists As GreenNode, modifiers As GreenNode, operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax)
5355
Friend Sub New(ByVal kind As SyntaxKind, attributeLists As GreenNode, modifiers As GreenNode, operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, context As ISyntaxFactoryContext)
5371
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), attributeLists As GreenNode, modifiers As GreenNode, operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax)
5402
Friend ReadOnly Property OperatorToken As InternalSyntax.
SyntaxToken
9227
Friend ReadOnly _labelToken as
SyntaxToken
9230
Friend Sub New(ByVal kind As SyntaxKind, labelToken As InternalSyntax.
SyntaxToken
, colonToken As InternalSyntax.PunctuationSyntax)
9241
Friend Sub New(ByVal kind As SyntaxKind, labelToken As InternalSyntax.
SyntaxToken
, colonToken As InternalSyntax.PunctuationSyntax, context As ISyntaxFactoryContext)
9253
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), labelToken As InternalSyntax.
SyntaxToken
, colonToken As InternalSyntax.PunctuationSyntax)
9272
Friend ReadOnly Property LabelToken As InternalSyntax.
SyntaxToken
9414
Friend ReadOnly _labelToken as
SyntaxToken
9416
Friend Sub New(ByVal kind As SyntaxKind, labelToken As InternalSyntax.
SyntaxToken
)
9425
Friend Sub New(ByVal kind As SyntaxKind, labelToken As InternalSyntax.
SyntaxToken
, context As ISyntaxFactoryContext)
9435
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), labelToken As InternalSyntax.
SyntaxToken
)
9452
Friend ReadOnly Property LabelToken As InternalSyntax.
SyntaxToken
15501
Friend ReadOnly _token as
SyntaxToken
15503
Friend Sub New(ByVal kind As SyntaxKind, token As InternalSyntax.
SyntaxToken
)
15512
Friend Sub New(ByVal kind As SyntaxKind, token As InternalSyntax.
SyntaxToken
, context As ISyntaxFactoryContext)
15522
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), token As InternalSyntax.
SyntaxToken
)
15546
Friend ReadOnly Property Token As InternalSyntax.
SyntaxToken
18106
Friend ReadOnly _operatorToken as
SyntaxToken
18109
Friend Sub New(ByVal kind As SyntaxKind, left As ExpressionSyntax, operatorToken As InternalSyntax.
SyntaxToken
, right As ExpressionSyntax)
18122
Friend Sub New(ByVal kind As SyntaxKind, left As ExpressionSyntax, operatorToken As InternalSyntax.
SyntaxToken
, right As ExpressionSyntax, context As ISyntaxFactoryContext)
18136
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), left As ExpressionSyntax, operatorToken As InternalSyntax.
SyntaxToken
, right As ExpressionSyntax)
18162
Friend ReadOnly Property OperatorToken As InternalSyntax.
SyntaxToken
18212
Friend ReadOnly _operatorToken as
SyntaxToken
18215
Friend Sub New(ByVal kind As SyntaxKind, operatorToken As InternalSyntax.
SyntaxToken
, operand As ExpressionSyntax)
18226
Friend Sub New(ByVal kind As SyntaxKind, operatorToken As InternalSyntax.
SyntaxToken
, operand As ExpressionSyntax, context As ISyntaxFactoryContext)
18238
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), operatorToken As InternalSyntax.
SyntaxToken
, operand As ExpressionSyntax)
18256
Friend ReadOnly Property OperatorToken As InternalSyntax.
SyntaxToken
25147
Friend ReadOnly _operatorToken as
SyntaxToken
25149
Friend Sub New(ByVal kind As SyntaxKind, operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
)
25160
Friend Sub New(ByVal kind As SyntaxKind, operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
, context As ISyntaxFactoryContext)
25172
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
)
25193
Friend ReadOnly Property OperatorToken As InternalSyntax.
SyntaxToken
26030
Friend ReadOnly Property Tokens As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)
30589
Dim newOperatorToken = DirectCast(Visit(node.OperatorToken),
SyntaxToken
)
31140
Dim newLabelToken = DirectCast(Visit(node.LabelToken),
SyntaxToken
)
31170
Dim newLabelToken = DirectCast(Visit(node.LabelToken),
SyntaxToken
)
32059
Dim newToken = DirectCast(Visit(node.Token),
SyntaxToken
)
32468
Dim newOperatorToken = DirectCast(Visit(node.OperatorToken),
SyntaxToken
)
32483
Dim newOperatorToken = DirectCast(Visit(node.OperatorToken),
SyntaxToken
)
33514
Dim newOperatorToken = DirectCast(Visit(node.OperatorToken),
SyntaxToken
)
36671
Friend Shared Function OperatorStatement(attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), operatorKeyword As KeywordSyntax, operatorToken As
SyntaxToken
, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As OperatorStatementSyntax
37798
Friend Shared Function LabelStatement(labelToken As
SyntaxToken
, colonToken As PunctuationSyntax) As LabelStatementSyntax
37854
Friend Shared Function IdentifierLabel(labelToken As
SyntaxToken
) As LabelSyntax
37880
Friend Shared Function NumericLabel(labelToken As
SyntaxToken
) As LabelSyntax
37906
Friend Shared Function NextLabel(labelToken As
SyntaxToken
) As LabelSyntax
37936
Friend Shared Function Label(kind As SyntaxKind, labelToken As
SyntaxToken
) As LabelSyntax
41244
Friend Shared Function CharacterLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41280
Friend Shared Function TrueLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41316
Friend Shared Function FalseLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41352
Friend Shared Function NumericLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41388
Friend Shared Function DateLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41424
Friend Shared Function StringLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41460
Friend Shared Function NothingLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
41502
Friend Shared Function LiteralExpression(kind As SyntaxKind, token As
SyntaxToken
) As LiteralExpressionSyntax
42353
Friend Shared Function AddExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42384
Friend Shared Function SubtractExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42415
Friend Shared Function MultiplyExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42446
Friend Shared Function DivideExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42477
Friend Shared Function IntegerDivideExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42508
Friend Shared Function ExponentiateExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42539
Friend Shared Function LeftShiftExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42570
Friend Shared Function RightShiftExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42601
Friend Shared Function ConcatenateExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42632
Friend Shared Function ModuloExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42663
Friend Shared Function EqualsExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42694
Friend Shared Function NotEqualsExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42725
Friend Shared Function LessThanExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42756
Friend Shared Function LessThanOrEqualExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42787
Friend Shared Function GreaterThanOrEqualExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42818
Friend Shared Function GreaterThanExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42849
Friend Shared Function IsExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42880
Friend Shared Function IsNotExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42911
Friend Shared Function LikeExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42942
Friend Shared Function OrExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
42973
Friend Shared Function ExclusiveOrExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
43004
Friend Shared Function AndExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
43035
Friend Shared Function OrElseExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
43066
Friend Shared Function AndAlsoExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
43108
Friend Shared Function BinaryExpression(kind As SyntaxKind, left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
43138
Friend Shared Function UnaryPlusExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
43166
Friend Shared Function UnaryMinusExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
43194
Friend Shared Function NotExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
43222
Friend Shared Function AddressOfExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
43255
Friend Shared Function UnaryExpression(kind As SyntaxKind, operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
45219
Friend Shared Function CrefOperatorReference(operatorKeyword As KeywordSyntax, operatorToken As
SyntaxToken
) As CrefOperatorReferenceSyntax
48737
Friend Function OperatorStatement(attributeLists As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), modifiers As Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode), operatorKeyword As KeywordSyntax, operatorToken As
SyntaxToken
, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As OperatorStatementSyntax
49864
Friend Function LabelStatement(labelToken As
SyntaxToken
, colonToken As PunctuationSyntax) As LabelStatementSyntax
49920
Friend Function IdentifierLabel(labelToken As
SyntaxToken
) As LabelSyntax
49946
Friend Function NumericLabel(labelToken As
SyntaxToken
) As LabelSyntax
49972
Friend Function NextLabel(labelToken As
SyntaxToken
) As LabelSyntax
50002
Friend Function Label(kind As SyntaxKind, labelToken As
SyntaxToken
) As LabelSyntax
53310
Friend Function CharacterLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53346
Friend Function TrueLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53382
Friend Function FalseLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53418
Friend Function NumericLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53454
Friend Function DateLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53490
Friend Function StringLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53526
Friend Function NothingLiteralExpression(token As
SyntaxToken
) As LiteralExpressionSyntax
53568
Friend Function LiteralExpression(kind As SyntaxKind, token As
SyntaxToken
) As LiteralExpressionSyntax
54419
Friend Function AddExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54450
Friend Function SubtractExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54481
Friend Function MultiplyExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54512
Friend Function DivideExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54543
Friend Function IntegerDivideExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54574
Friend Function ExponentiateExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54605
Friend Function LeftShiftExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54636
Friend Function RightShiftExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54667
Friend Function ConcatenateExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54698
Friend Function ModuloExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54729
Friend Function EqualsExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54760
Friend Function NotEqualsExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54791
Friend Function LessThanExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54822
Friend Function LessThanOrEqualExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54853
Friend Function GreaterThanOrEqualExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54884
Friend Function GreaterThanExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54915
Friend Function IsExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54946
Friend Function IsNotExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
54977
Friend Function LikeExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55008
Friend Function OrExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55039
Friend Function ExclusiveOrExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55070
Friend Function AndExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55101
Friend Function OrElseExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55132
Friend Function AndAlsoExpression(left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55174
Friend Function BinaryExpression(kind As SyntaxKind, left As ExpressionSyntax, operatorToken As
SyntaxToken
, right As ExpressionSyntax) As BinaryExpressionSyntax
55204
Friend Function UnaryPlusExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
55232
Friend Function UnaryMinusExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
55260
Friend Function NotExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
55288
Friend Function AddressOfExpression(operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
55321
Friend Function UnaryExpression(kind As SyntaxKind, operatorToken As
SyntaxToken
, operand As ExpressionSyntax) As UnaryExpressionSyntax
57285
Friend Function CrefOperatorReference(operatorKeyword As KeywordSyntax, operatorToken As
SyntaxToken
) As CrefOperatorReferenceSyntax
Generated\Syntax.xml.Syntax.Generated.vb (7)
8343
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), attributeLists As SyntaxNode, modifiers As GreenNode, operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax)
13454
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), labelToken As InternalSyntax.
SyntaxToken
, colonToken As InternalSyntax.PunctuationSyntax)
13675
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), labelToken As InternalSyntax.
SyntaxToken
)
21281
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), token As InternalSyntax.
SyntaxToken
)
25194
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), left As ExpressionSyntax, operatorToken As InternalSyntax.
SyntaxToken
, right As ExpressionSyntax)
25331
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), operatorToken As InternalSyntax.
SyntaxToken
, operand As ExpressionSyntax)
34134
Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), operatorKeyword As InternalSyntax.KeywordSyntax, operatorToken As InternalSyntax.
SyntaxToken
)
Parser\BlockContexts\BlockContext.vb (1)
314
Private Sub HandleAnyUnexpectedTokens(currentStmt As StatementSyntax, unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
))
Parser\BlockContexts\CompilationUnitContext.vb (5)
151
Private _tokenWithDirectivesBeingVisited As
SyntaxToken
531
Public Overrides Function VisitSyntaxToken(token As
SyntaxToken
) As
SyntaxToken
545
token = DirectCast(token.WithLeadingTrivia(rewritten),
SyntaxToken
)
552
token = DirectCast(token.WithTrailingTrivia(rewritten),
SyntaxToken
)
Parser\ParseConditional.vb (2)
28
missingHash = missingHash.AddLeadingSyntax(New CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)(CurrentToken))
233
Dim unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
Parser\ParseExpression.vb (12)
63
Dim startToken As
SyntaxToken
= CurrentToken
156
Dim [operator] As
SyntaxToken
= ParseBinaryOperator()
187
Dim start As
SyntaxToken
= CurrentToken
454
Dim [Next] As
SyntaxToken
= CurrentToken
516
Private Shared Function TokenContainsFullWidthChars(tk As
SyntaxToken
) As Boolean
940
Dim current As
SyntaxToken
= CurrentToken
1137
Private Sub RescanTrailingColonAsToken(ByRef prevToken As
SyntaxToken
, ByRef currentToken As
SyntaxToken
)
1154
token = DirectCast(token.WithTrailingTrivia(trivia.Node),
SyntaxToken
)
1155
token =
SyntaxToken
.AddTrailingTrivia(token, toAdd)
1169
token = DirectCast(token.WithTrailingTrivia(trivia.Node),
SyntaxToken
)
1170
token =
SyntaxToken
.AddTrailingTrivia(token, toAdd)
Parser\ParseInterpolatedString.vb (6)
30
Dim skipped As SyntaxListBuilder(Of
SyntaxToken
) = Nothing
55
skipped = _pool.Allocate(Of
SyntaxToken
)
264
token As
SyntaxToken
,
267
) As
SyntaxToken
310
Return DirectCast(token.WithTrailingTrivia(newTrailingTrivia),
SyntaxToken
)
320
Dim lastNonMissing = DirectCast(node.GetLastToken(),
SyntaxToken
)
Parser\ParseQuery.vb (6)
160
Dim unexpectedNullable As
SyntaxToken
= CurrentToken
316
Dim unexpectedNullable As
SyntaxToken
= CurrentToken
437
Dim unexpectedNullable As
SyntaxToken
= CurrentToken
546
Dim current As
SyntaxToken
= PeekToken(curIndex)
789
Dim unexpectedNullable As
SyntaxToken
= CurrentToken
1229
Private Function IsContinuableQueryOperator(pToken As
SyntaxToken
) As Boolean
Parser\Parser.vb (47)
357
Private Shared Function MergeTokenText(firstToken As
SyntaxToken
, secondToken As
SyntaxToken
) As String
512
Return result.AddLeadingSyntax(builder.ToList(Of
SyntaxToken
)(), ERRID.ERR_TooLongOrComplexExpression)
557
Private Function ParseBinaryOperator() As
SyntaxToken
558
Dim result As
SyntaxToken
= CurrentToken
559
Dim nextToken As
SyntaxToken
= Nothing
661
Dim nextToken As
SyntaxToken
= PeekToken(1)
1647
Dim unexpectedSyntax As CoreInternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
1937
Dim t As
SyntaxToken
= CurrentToken
1988
Dim nextToken As
SyntaxToken
= PeekToken(1)
2001
Dim nextToken As
SyntaxToken
= PeekToken(1)
2402
Dim skipped As CoreInternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
2589
Dim propertyName As
SyntaxToken
2671
Dim identifierStartPrev As
SyntaxToken
= PrevToken
2672
Dim identifierStart As
SyntaxToken
= CurrentToken
2689
Dim nextToken As
SyntaxToken
= PeekToken(1)
2753
Private Shared Function CanTokenStartTypeName(Token As
SyntaxToken
) As Boolean
2795
Dim Start As
SyntaxToken
= CurrentToken
2796
Dim prev As
SyntaxToken
= PrevToken
3034
Dim start As
SyntaxToken
= CurrentToken
3936
Dim operatorToken As
SyntaxToken
4035
Dim handlesOrImplementsKeyword As
SyntaxToken
= Nothing
5071
Dim unexpected As CoreInternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
5491
Dim previous As
SyntaxToken
= Nothing
5492
Dim current As
SyntaxToken
= Nothing
5572
Private Function GetTokenAsAssemblyOrModuleKeyword(token As
SyntaxToken
) As KeywordSyntax
5586
Friend Shared Function GetBinaryOperatorHelper(t As
SyntaxToken
) As SyntaxKind
5595
Private Shared Function StartsValidConditionalCompilationExpr(t As
SyntaxToken
) As Boolean
5655
Private Shared Function IsValidOperatorForConditionalCompilationExpr(t As
SyntaxToken
) As Boolean
5851
Private Function TryGetToken(Of T As
SyntaxToken
)(kind As SyntaxKind, ByRef token As T) As Boolean
5914
Private Function TryGetTokenAndEatNewLine(Of T As
SyntaxToken
)(
5938
Private Function TryEatNewLineAndGetToken(Of T As
SyntaxToken
)(
5970
Private Function PeekToken(offset As Integer) As
SyntaxToken
5975
Friend Function PeekNextToken(Optional state As ScannerState = ScannerState.VB) As
SyntaxToken
5982
Private ReadOnly Property PrevToken As
SyntaxToken
5988
Private _currentToken As
SyntaxToken
5989
Friend ReadOnly Property CurrentToken As
SyntaxToken
6035
Private Shared Function TryIdentifierAsContextualKeyword(id As
SyntaxToken
, ByRef kind As SyntaxKind) As Boolean
6042
Private Function TryIdentifierAsContextualKeyword(id As
SyntaxToken
, ByRef k As KeywordSyntax) As Boolean
6049
Private Function TryTokenAsContextualKeyword(t As
SyntaxToken
, kind As SyntaxKind, ByRef k As KeywordSyntax) As Boolean
6059
Private Function TryTokenAsContextualKeyword(t As
SyntaxToken
, ByRef k As KeywordSyntax) As Boolean
6063
Private Shared Function TryTokenAsKeyword(t As
SyntaxToken
, ByRef kind As SyntaxKind) As Boolean
6067
Private Shared ReadOnly s_isTokenOrKeywordFunc As Func(Of
SyntaxToken
, SyntaxKind(), Boolean) = AddressOf IsTokenOrKeyword
6069
Private Shared Function IsTokenOrKeyword(token As
SyntaxToken
, kinds As SyntaxKind()) As Boolean
6078
Private Shared Function IsToken(token As
SyntaxToken
, ParamArray kinds As SyntaxKind()) As Boolean
6084
Dim b As SyntaxListBuilder(Of
SyntaxToken
) = SyntaxListBuilder(Of
SyntaxToken
).Create()
Parser\ParseScan.vb (17)
37
Private Function PeekPastStatementTerminator() As
SyntaxToken
60
Friend Function IsValidStatementTerminator(t As
SyntaxToken
) As Boolean
78
Private Function CanFollowStatement(T As
SyntaxToken
) As Boolean
84
Friend Function CanFollowStatementButIsNotSelectFollowingExpression(nextToken As
SyntaxToken
) As Boolean
104
Private Function CanEndExecutableStatement(t As
SyntaxToken
) As Boolean
114
Private Function CanFollowExpression(t As
SyntaxToken
) As Boolean
172
Private Function MustEndStatement(t As
SyntaxToken
) As Boolean
200
Dim token As
SyntaxToken
= Nothing
205
Private Function PeekAheadFor(Of TArg)(predicate As Func(Of
SyntaxToken
, TArg, Boolean), arg As TArg, <Out()> ByRef token As
SyntaxToken
) As Integer
243
Private Sub ResyncAt(skippedTokens As SyntaxListBuilder(Of
SyntaxToken
), state As ScannerState, resyncTokens As SyntaxKind())
265
Private Function ResyncAt(state As ScannerState, resyncTokens As SyntaxKind()) As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)
266
Dim skippedTokens = Me._pool.Allocate(Of
SyntaxToken
)()
279
Private Function ResyncAndConsumeStatementTerminator() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)
280
Dim skippedTokens = Me._pool.Allocate(Of
SyntaxToken
)()
303
Friend Function ResyncAt() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)
307
Friend Function ResyncAt(resyncTokens As SyntaxKind()) As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)
Parser\ParseStatement.vb (10)
496
Dim unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
) = ResyncAt()
794
Dim lookAhead As
SyntaxToken
= Nothing
870
Private Function ParseLabelReference() As
SyntaxToken
872
Dim label As
SyntaxToken
= CurrentToken
938
Private Function GetLabelSyntaxForIdentifierOrLineNumber(ByVal labelName As
SyntaxToken
) As LabelSyntax
1017
Dim nextToken As
SyntaxToken
= PeekToken(1)
1059
Dim optionalLabel As
SyntaxToken
= Nothing
1426
Dim keyword As
SyntaxToken
= CurrentToken
1593
labelName = DirectCast(labelName.WithTrailingTrivia(trivia.GetStartOfTrivia(index).Node),
SyntaxToken
)
1797
Dim nextToken As
SyntaxToken
= PeekToken(1)
Parser\ParseTerminal.vb (1)
197
Dim stringToken As
SyntaxToken
= Nothing
Parser\ParseVerify.vb (3)
20
Private Shared Function HandleUnexpectedToken(kind As SyntaxKind) As
SyntaxToken
160
Private Function VerifyExpectedToken(Of T As
SyntaxToken
)(
166
Dim current As
SyntaxToken
= CurrentToken
Parser\ParseXml.vb (19)
220
Dim unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
284
Dim skipped As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
418
Dim unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
543
Dim divideToken As
SyntaxToken
= CurrentToken
551
Dim unexpectedSyntax = New CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
)(
867
Dim unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of
SyntaxToken
) = Nothing
881
Dim slashToken As
SyntaxToken
= PeekNextToken(ScannerState.EndElement)
1133
Dim token As
SyntaxToken
= CurrentToken
1207
Dim currToken As
SyntaxToken
= Me.CurrentToken
1265
Dim operatorToken As
SyntaxToken
1403
Dim identToken As
SyntaxToken
= CurrentToken
1423
Dim closingToken As
SyntaxToken
= Me.CurrentToken
1457
Dim token As
SyntaxToken
= TryCast(node,
SyntaxToken
)
1645
Private Shared Function IsValidXmlQualifiedNameToken(token As
SyntaxToken
) As Boolean
1649
Private Function ToXmlNameToken(token As
SyntaxToken
) As XmlNameTokenSyntax
2017
Dim skippedTokens = Me._pool.Allocate(Of
SyntaxToken
)()
2342
Public Overrides Function VisitSyntaxToken(token As
SyntaxToken
) As
SyntaxToken
Scanner\Blender.vb (3)
62
Private Shared Sub PushReverseTerminal(stack As Stack(Of GreenNode), tk As
SyntaxToken
)
69
PushChildReverse(stack, DirectCast(tk.WithLeadingTrivia(Nothing).WithTrailingTrivia(Nothing),
SyntaxToken
))
278
PushReverseTerminal(_nodeStack, DirectCast(_currentNode,
SyntaxToken
))
Scanner\Directives.vb (1)
156
Dim tk = DirectCast(node,
SyntaxToken
)
Scanner\Scanner.vb (34)
53
Private ReadOnly _quickTokenTable As TextKeyedCache(Of
SyntaxToken
) = TextKeyedCache(Of
SyntaxToken
).GetInstance
77
Private Shared ReadOnly s_literalTablePool As New ObjectPool(Of CachingFactory(Of TokenParts,
SyntaxToken
))(
78
Function() New CachingFactory(Of TokenParts,
SyntaxToken
)(TABLE_LIMIT, Nothing, s_tokenKeyHasher, s_tokenKeyEquality))
80
Private ReadOnly _literalTable As CachingFactory(Of TokenParts,
SyntaxToken
) = s_literalTablePool.Allocate
164
Private Function GetNextToken(Optional allowLeadingMultilineTrivia As Boolean = False) As
SyntaxToken
194
Private Function ScanNextToken(allowLeadingMultilineTrivia As Boolean) As
SyntaxToken
231
Private Function ScanNextCharAsToken(leadingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
232
Dim token As
SyntaxToken
512
Private Function ScanNewlineAsStatementTerminator(startCharacter As Char, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
521
Private Function ScanColonAsStatementTerminator(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), charIsFullWidth As Boolean) As
SyntaxToken
1138
Private Function ScanTokenCommon(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), ch As Char, fullWidth As Boolean) As
SyntaxToken
1345
Private Function TryScanToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
1352
Private Function ScanTokenFullWidth(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), ch As Char) As
SyntaxToken
1379
Private Function ScanRightAngleBracket(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), charIsFullWidth As Boolean) As
SyntaxToken
1406
Private Function ScanLeftAngleBracket(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), charIsFullWidth As Boolean, scanTrailingTrivia As ScanTriviaFunc) As
SyntaxToken
1501
Private Function ScanIdentifierOrKeyword(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
1606
Dim id As
SyntaxToken
= MakeIdentifier(spelling, contextualKind, False, baseSpelling, TypeCharacter, precedingTrivia)
1619
Private Function ScanBracketedIdentifier(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
1657
Dim id As
SyntaxToken
= MakeIdentifier(
1692
Private Function ScanNumericLiteral(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
2107
Dim result As
SyntaxToken
2120
result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Overflow)),
SyntaxToken
)
2124
result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Syntax)),
SyntaxToken
)
2197
Private Function ScanDateLiteral(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
2514
Private Function ScanStringLiteral(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
2582
Dim result As
SyntaxToken
= SyntaxFactory.StringLiteralToken(spelling, GetScratchText(scratch), precedingTrivia.Node, followingTrivia.Node)
2614
Return DirectCast(StrTkErr,
SyntaxToken
)
2644
Friend Function TryTokenAsContextualKeyword(t As
SyntaxToken
, ByRef k As KeywordSyntax) As Boolean
2656
Friend Shared Function TryTokenAsKeyword(t As
SyntaxToken
, ByRef kind As SyntaxKind) As Boolean
2674
Friend Shared Function IsContextualKeyword(t As
SyntaxToken
, ParamArray kinds As SyntaxKind()) As Boolean
2686
Private Function CheckFeatureAvailability(token As
SyntaxToken
, feature As Feature) As
SyntaxToken
2695
Return DirectCast(token.AddError(errorInfo),
SyntaxToken
)
Scanner\ScannerInterpolatedString.vb (5)
15
Private Function ScanInterpolatedStringPunctuation() As
SyntaxToken
101
Private Function ScanInterpolatedStringContent() As
SyntaxToken
109
Private Function ScanInterpolatedStringFormatString() As
SyntaxToken
140
Private Function ScanInterpolatedStringText(scanTrailingWhitespaceAsTrivia As Boolean) As
SyntaxToken
233
Private Function MakeEndOfInterpolatedStringToken() As
SyntaxToken
Scanner\ScannerXml.vb (19)
56
Friend Function ScanXmlElement(Optional state As ScannerState = ScannerState.Element) As
SyntaxToken
215
Dim token As
SyntaxToken
292
Friend Function ScanXmlContent() As
SyntaxToken
483
Friend Function ScanXmlComment() As
SyntaxToken
570
Friend Function ScanXmlCData() As
SyntaxToken
637
Friend Function ScanXmlPIData(state As ScannerState) As
SyntaxToken
650
Dim result As
SyntaxToken
718
Friend Function ScanXmlMisc() As
SyntaxToken
789
Friend Function ScanXmlStringUnQuoted() As
SyntaxToken
860
Friend Function ScanXmlStringSingle() As
SyntaxToken
864
Friend Function ScanXmlStringDouble() As
SyntaxToken
868
Friend Function ScanXmlStringSmartSingle() As
SyntaxToken
872
Friend Function ScanXmlStringSmartDouble() As
SyntaxToken
876
Friend Function ScanXmlString(terminatingChar As Char, altTerminatingChar As Char, isSingle As Boolean) As
SyntaxToken
880
Dim result As
SyntaxToken
930
result = DirectCast(errEmbedStart.SetDiagnostics({errEmbedInfo}),
SyntaxToken
)
936
data = DirectCast(data.WithLeadingTrivia(precedingTrivia.ToList.Node),
SyntaxToken
)
939
result = DirectCast(data.SetDiagnostics({errInfo}),
SyntaxToken
)
1052
Private Function ScanXmlNcName(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
Scanner\TokenFactories.vb (16)
122
Private Shared ReadOnly s_tokenKeyEquality As Func(Of TokenParts,
SyntaxToken
, Boolean) =
627
length As Integer) As
SyntaxToken
634
Dim p As
SyntaxToken
= Nothing
651
Private Function MakeCharacterLiteralToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), value As Char, length As Integer) As
SyntaxToken
657
Dim p As
SyntaxToken
= Nothing
667
Private Function MakeDateLiteralToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), value As DateTime, length As Integer) As
SyntaxToken
673
Dim p As
SyntaxToken
= Nothing
686
length As Integer) As
SyntaxToken
693
Dim p As
SyntaxToken
= Nothing
712
length As Integer) As
SyntaxToken
719
Dim p As
SyntaxToken
= Nothing
738
Private Function MakeBadToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, errId As ERRID) As
SyntaxToken
744
Return DirectCast(errResult1,
SyntaxToken
)
747
Private Shared Function MakeEofToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)) As
SyntaxToken
751
Private ReadOnly _simpleEof As
SyntaxToken
= SyntaxFactory.Token(Nothing, SyntaxKind.EndOfFileToken, Nothing, String.Empty)
752
Private Function MakeEofToken() As
SyntaxToken
Scanner\TokenStream.vb (19)
202
Friend ReadOnly Property LastToken As
SyntaxToken
215
Friend ReadOnly Property PrevToken As
SyntaxToken
221
Friend Function GetCurrentToken() As
SyntaxToken
256
xmlTk =
SyntaxToken
.AddLeadingTrivia(xmlTk, vbTk.GetLeadingTrivia())
268
Friend Sub RescanTrailingColonAsToken(ByRef prevToken As
SyntaxToken
, ByRef currentToken As
SyntaxToken
)
282
tk = DirectCast(tk.WithTrailingTrivia(Nothing),
SyntaxToken
)
328
tk = DirectCast(tk.WithTrailingTrivia(trivia.GetStartOfTrivia(index).Node),
SyntaxToken
)
336
tk =
SyntaxToken
.AddTrailingTrivia(tk, toAdd.Node)
352
tk = DirectCast(tk.WithTrailingTrivia(trivia.GetStartOfTrivia(index).Node),
SyntaxToken
)
362
Private Shared Function GetFullWidth(token As ScannerToken, tk As
SyntaxToken
) As Integer
387
Friend Function PeekNextToken(state As ScannerState) As
SyntaxToken
405
Friend Function PeekToken(tokenOffset As Integer, state As ScannerState) As
SyntaxToken
457
Private Function GetTokenAndAddToQueue(state As ScannerState) As
SyntaxToken
575
Private Function GetScannerToken(state As ScannerState) As
SyntaxToken
576
Dim token As
SyntaxToken
= Nothing
642
token As
SyntaxToken
,
651
Friend Function [With](state As ScannerState, token As
SyntaxToken
) As ScannerToken
659
Public ReadOnly InnerTokenObject As
SyntaxToken
Scanner\XmlDocComments.vb (4)
220
Private Function ScanXmlContentInXmlDoc() As
SyntaxToken
347
Friend Function ScanXmlPIDataInXmlDoc(state As ScannerState) As
SyntaxToken
357
Dim result As
SyntaxToken
438
Private Function ScanXmlElementInXmlDoc(state As ScannerState) As
SyntaxToken
Scanner\XmlTokenFactories.vb (3)
17
Private Shared Function MakeMissingToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), kind As SyntaxKind) As
SyntaxToken
18
Dim missing As
SyntaxToken
= SyntaxFactory.MissingToken(kind)
20
missing = DirectCast(missing.WithLeadingTrivia(precedingTrivia.Node),
SyntaxToken
)
Syntax\InternalSyntax\DocumentationCommentTriviaSyntax.vb (2)
29
Dim tk = DirectCast(node,
SyntaxToken
)
36
Private Shared Sub WriteInteriorXml(node As
SyntaxToken
, sb As StringBuilder)
Syntax\InternalSyntax\SyntaxFactory.vb (2)
62
Friend Shared Function Token(leading As GreenNode, kind As SyntaxKind, trailing As GreenNode, Optional text As String = Nothing) As
SyntaxToken
63
Return
SyntaxToken
.Create(kind, leading, trailing, If(text Is Nothing, SyntaxFacts.GetText(kind), text))
Syntax\InternalSyntax\SyntaxNode.vb (4)
86
Friend Function GetFirstToken() As
SyntaxToken
87
Return DirectCast(Me.GetFirstTerminal(),
SyntaxToken
)
90
Friend Function GetLastToken() As
SyntaxToken
91
Return DirectCast(Me.GetLastTerminal(),
SyntaxToken
)
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (26)
86
Private Function IsMissingToken(token As
SyntaxToken
) As Boolean
102
Dim tk = TryCast(node,
SyntaxToken
)
114
tk =
SyntaxToken
.AddLeadingTrivia(tk, leadingTrivia).AddTrailingTrivia(trailingTrivia)
116
tk =
SyntaxToken
.AddLeadingTrivia(tk, trivia)
121
result = FirstTokenReplacer.Replace(node, Function(t)
SyntaxToken
.AddLeadingTrivia(t, trivia))
149
Friend Function AddLeadingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As
SyntaxToken
, errorId As ERRID) As TSyntax
155
Friend Function AddLeadingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As CoreInternalSyntax.SyntaxList(Of
SyntaxToken
)) As TSyntax
199
Dim tk = TryCast(node,
SyntaxToken
)
202
result = DirectCast(CObj(
SyntaxToken
.AddTrailingTrivia(tk, trivia)), TSyntax)
204
result = LastTokenReplacer.Replace(node, Function(t)
SyntaxToken
.AddTrailingTrivia(t, trivia))
214
Friend Function AddTrailingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As CoreInternalSyntax.SyntaxList(Of
SyntaxToken
), errorId As ERRID) As TSyntax
231
Friend Function AddTrailingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As
SyntaxToken
, errorId As ERRID) As TSyntax
237
Friend Function AddTrailingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As CoreInternalSyntax.SyntaxList(Of
SyntaxToken
)) As TSyntax
243
Friend Function AddTrailingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As
SyntaxToken
) As TSyntax
453
Private ReadOnly _skippedTokensBuilder As SyntaxListBuilder(Of
SyntaxToken
) = SyntaxListBuilder(Of
SyntaxToken
).Create()
493
Public Sub AddToken(token As
SyntaxToken
, isFirst As Boolean, isLast As Boolean)
499
token = DirectCast(token.WithLeadingTrivia(Nothing),
SyntaxToken
)
510
token = DirectCast(token.WithTrailingTrivia(Nothing),
SyntaxToken
)
576
Dim tokenListBuilder = SyntaxListBuilder(Of
SyntaxToken
).Create
592
Dim currentToken As
SyntaxToken
= tokenListBuilder(i)
606
tokenListBuilder As SyntaxListBuilder(Of
SyntaxToken
),
613
tokenListBuilder.Add(DirectCast(this,
SyntaxToken
))
680
ByRef isRejectedXmlName As Boolean) As
SyntaxToken
682
Dim result As
SyntaxToken
= ExtractAnonymousTypeMemberName(conditionalAccessStack, input, isNameDictionaryAccess, isRejectedXmlName)
697
) As
SyntaxToken
Syntax\InternalSyntax\SyntaxNodeFactories.vb (2)
151
Friend Shared Function MissingToken(kind As SyntaxKind) As
SyntaxToken
152
Dim t As
SyntaxToken
Syntax\InternalSyntax\SyntaxReplacer.vb (17)
14
Private ReadOnly _newItem As Func(Of
SyntaxToken
,
SyntaxToken
)
18
Private Sub New(newItem As Func(Of
SyntaxToken
,
SyntaxToken
))
24
newItem As Func(Of
SyntaxToken
,
SyntaxToken
)) As TTree
45
Public Overrides Function VisitSyntaxToken(token As
SyntaxToken
) As
SyntaxToken
53
Private ReadOnly _newItem As Func(Of
SyntaxToken
,
SyntaxToken
)
57
Private Sub New(newItem As Func(Of
SyntaxToken
,
SyntaxToken
))
63
newItem As Func(Of
SyntaxToken
,
SyntaxToken
)) As TTree
117
Return MyBase.Visit(DirectCast(node,
SyntaxToken
))
122
Public Overrides Function VisitSyntaxToken(token As
SyntaxToken
) As
SyntaxToken
Syntax\InternalSyntax\SyntaxToken.vb (5)
344
Public Shared Function AddLeadingTrivia(Of T As
SyntaxToken
)(token As T, newTrivia As CoreInternalSyntax.SyntaxList(Of GreenNode)) As T
370
Public Shared Function AddTrailingTrivia(Of T As
SyntaxToken
)(token As T, newTrivia As CoreInternalSyntax.SyntaxList(Of GreenNode)) As T
393
Friend Shared Function Create(kind As SyntaxKind, Optional leading As GreenNode = Nothing, Optional trailing As GreenNode = Nothing, Optional text As String = Nothing) As
SyntaxToken
413
Public Shared Narrowing Operator CType(token As
SyntaxToken
) As Microsoft.CodeAnalysis.SyntaxToken
422
Dim otherToken = DirectCast(other,
SyntaxToken
)
Syntax\InternalSyntax\VisualBasicSyntaxRewriter.vb (4)
9
Public Overridable Function VisitSyntaxToken(token As
SyntaxToken
) As
SyntaxToken
66
Debug.Assert(TypeOf visitedSeparatorNode Is
SyntaxToken
, "Cannot replace a separator with a non-separator")
68
visitedSeparator = DirectCast(visitedSeparatorNode,
SyntaxToken
)