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