187 references to CommaToken
Microsoft.CodeAnalysis.VisualBasic (187)
CommandLine\VisualBasicCommandLineParser.vb (4)
1900While tokens.Current.Kind = SyntaxKind.CommaToken OrElse tokens.Current.Kind = SyntaxKind.ColonToken 2053ElseIf tokens.Current.Kind = SyntaxKind.CommaToken OrElse 2113Return token.Kind = SyntaxKind.EndOfFileToken OrElse token.Kind = SyntaxKind.ColonToken OrElse token.Kind = SyntaxKind.CommaToken 2120Optional stopTokenKind As SyntaxKind = SyntaxKind.CommaToken
Generated\Syntax.xml.Internal.Generated.vb (26)
40986Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 41011Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 41042Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 42252Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 42281Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 42310Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 43301Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 43340Debug.Assert(firstCommaToken IsNot Nothing AndAlso firstCommaToken.Kind = SyntaxKind.CommaToken) 43342Debug.Assert(secondCommaToken IsNot Nothing AndAlso secondCommaToken.Kind = SyntaxKind.CommaToken) 45649Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 45967Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 45999Debug.Assert(firstCommaToken IsNot Nothing AndAlso firstCommaToken.Kind = SyntaxKind.CommaToken) 46001Debug.Assert(secondCommaToken IsNot Nothing AndAlso secondCommaToken.Kind = SyntaxKind.CommaToken) 53052Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 53077Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 53108Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 54318Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 54347Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 54376Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 55367Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 55406Debug.Assert(firstCommaToken IsNot Nothing AndAlso firstCommaToken.Kind = SyntaxKind.CommaToken) 55408Debug.Assert(secondCommaToken IsNot Nothing AndAlso secondCommaToken.Kind = SyntaxKind.CommaToken) 57715Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 58033Debug.Assert(commaToken IsNot Nothing AndAlso commaToken.Kind = SyntaxKind.CommaToken) 58065Debug.Assert(firstCommaToken IsNot Nothing AndAlso firstCommaToken.Kind = SyntaxKind.CommaToken) 58067Debug.Assert(secondCommaToken IsNot Nothing AndAlso secondCommaToken.Kind = SyntaxKind.CommaToken)
Generated\Syntax.xml.Main.Generated.vb (28)
23549Case SyntaxKind.CommaToken 23680Return SyntaxFactory.AddHandlerStatement(SyntaxFactory.Token(SyntaxKind.AddHandlerKeyword), eventExpression, SyntaxFactory.Token(SyntaxKind.CommaToken), delegateExpression) 23819Case SyntaxKind.CommaToken 23950Return SyntaxFactory.RemoveHandlerStatement(SyntaxFactory.Token(SyntaxKind.RemoveHandlerKeyword), eventExpression, SyntaxFactory.Token(SyntaxKind.CommaToken), delegateExpression) 24095Case SyntaxKind.CommaToken 24244Return SyntaxFactory.AddRemoveHandlerStatement(kind, addHandlerOrRemoveHandlerKeyword, eventExpression, SyntaxFactory.Token(SyntaxKind.CommaToken), delegateExpression) 27052Case SyntaxKind.CommaToken 27089Return SyntaxFactory.CTypeExpression(SyntaxFactory.Token(SyntaxKind.CTypeKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), expression, SyntaxFactory.Token(SyntaxKind.CommaToken), type, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 27235Case SyntaxKind.CommaToken 27272Return SyntaxFactory.DirectCastExpression(SyntaxFactory.Token(SyntaxKind.DirectCastKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), expression, SyntaxFactory.Token(SyntaxKind.CommaToken), type, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 27418Case SyntaxKind.CommaToken 27455Return SyntaxFactory.TryCastExpression(SyntaxFactory.Token(SyntaxKind.TryCastKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), expression, SyntaxFactory.Token(SyntaxKind.CommaToken), type, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 35103Case SyntaxKind.CommaToken 35239Return SyntaxFactory.BinaryConditionalExpression(SyntaxFactory.Token(SyntaxKind.IfKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), firstExpression, SyntaxFactory.Token(SyntaxKind.CommaToken), secondExpression, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 35395Case SyntaxKind.CommaToken 35512Case SyntaxKind.CommaToken 35651Return SyntaxFactory.TernaryConditionalExpression(SyntaxFactory.Token(SyntaxKind.IfKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), condition, SyntaxFactory.Token(SyntaxKind.CommaToken), whenTrue, SyntaxFactory.Token(SyntaxKind.CommaToken), whenFalse, SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 42610Case SyntaxKind.CommaToken 42738Return SyntaxFactory.InterpolationAlignmentClause(SyntaxFactory.Token(SyntaxKind.CommaToken), value) 43730Case SyntaxKind.CommaToken 43753Return SyntaxFactory.ExternalSourceDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), SyntaxFactory.Token(SyntaxKind.StringLiteralToken), SyntaxFactory.Token(SyntaxKind.CommaToken), SyntaxFactory.Token(SyntaxKind.IntegerLiteralToken), SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 43819Case SyntaxKind.CommaToken 43829Case SyntaxKind.CommaToken 43851Return SyntaxFactory.ExternalChecksumDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.ExternalChecksumKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), SyntaxFactory.Token(SyntaxKind.StringLiteralToken), SyntaxFactory.Token(SyntaxKind.CommaToken), SyntaxFactory.Token(SyntaxKind.StringLiteralToken), SyntaxFactory.Token(SyntaxKind.CommaToken), SyntaxFactory.Token(SyntaxKind.StringLiteralToken), SyntaxFactory.Token(SyntaxKind.CloseParenToken)) 45204SyntaxKind.CommaToken, 45758Case SyntaxKind.CommaToken
Parser\ParseConditional.vb (6)
287VerifyExpectedToken(SyntaxKind.CommaToken, comma) 334VerifyExpectedToken(SyntaxKind.CommaToken, firstComma) 347VerifyExpectedToken(SyntaxKind.CommaToken, secondComma) 407errorCode = ResyncAt(errorCode, SyntaxKind.CommaToken) 415If Not TryGetToken(SyntaxKind.CommaToken, comma) Then 419comma = InternalSyntaxFactory.MissingPunctuation(SyntaxKind.CommaToken)
Parser\ParseExpression.vb (22)
566DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.CommaToken), PunctuationSyntax), 574DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.CommaToken), PunctuationSyntax), 628DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.CommaToken), PunctuationSyntax), 1249If (CurrentToken.Kind = SyntaxKind.CommaToken) Then 1266While CurrentToken.Kind = SyntaxKind.CommaToken 1268TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, commaToken) 1291argumentBuilder.AddSeparator(InternalSyntaxFactory.MissingToken(SyntaxKind.CommaToken)) 1421ElseIf CurrentToken.Kind = SyntaxKind.CommaToken Then 1422TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) 1442If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 1452Dim skipped = ResyncAt({SyntaxKind.CommaToken, SyntaxKind.CloseParenToken}).Node 1457If CurrentToken.Kind = SyntaxKind.CommaToken Then 1518If CurrentToken.Kind <> SyntaxKind.CommaToken Then 1527namedArgument = ResyncAt(namedArgument, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken) 1529If CurrentToken.Kind <> SyntaxKind.CommaToken Then 1537TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) 1538Debug.Assert(comma.Kind = SyntaxKind.CommaToken) 1555value = ResyncAt(value, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken) 1604exp = ResyncAt(exp, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken) 1609If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 1611comma = ReportSyntaxError(InternalSyntaxFactory.MissingPunctuation(SyntaxKind.CommaToken), 1877If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then
Parser\ParseInterpolatedString.vb (1)
127If CurrentToken.Kind = SyntaxKind.CommaToken Then
Parser\ParseQuery.vb (23)
58rangeVar = ResyncAt(rangeVar, SyntaxKind.CommaToken, SyntaxKind.WhereKeyword, SyntaxKind.GroupKeyword, 66If CurrentToken.Kind = SyntaxKind.CommaToken Then 247rangeVar = ResyncAt(rangeVar, SyntaxKind.CommaToken, SyntaxKind.WhereKeyword, SyntaxKind.GroupKeyword, 253rangeVar = ResyncAt(rangeVar, SyntaxKind.CommaToken, SyntaxKind.WhereKeyword, SyntaxKind.GroupKeyword, 263If CurrentToken.Kind = SyntaxKind.CommaToken Then 297Dim peek = PeekAheadFor(SyntaxKind.AsKeyword, SyntaxKind.InKeyword, SyntaxKind.CommaToken, 306SyntaxKind.CommaToken 342Dim peek = PeekAheadFor(SyntaxKind.InKeyword, SyntaxKind.CommaToken, SyntaxKind.EqualsToken, 350SyntaxKind.CommaToken 374Dim peek = PeekAheadFor(SyntaxKind.CommaToken, 380If peek = SyntaxKind.CommaToken Then 393If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 418Dim peek = PeekAheadFor(SyntaxKind.AsKeyword, SyntaxKind.InKeyword, SyntaxKind.CommaToken, 427SyntaxKind.CommaToken 463Dim peek = PeekAheadFor(SyntaxKind.InKeyword, SyntaxKind.CommaToken, SyntaxKind.EqualsToken, 472SyntaxKind.CommaToken 494Dim peek = PeekAheadFor(SyntaxKind.CommaToken, 500If peek = SyntaxKind.CommaToken Then 510If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 840Dim peek = PeekAheadFor(SyntaxKind.CommaToken, 846If peek = SyntaxKind.CommaToken Then 977OrderExpression = ResyncAt(OrderExpression, SyntaxKind.CommaToken, SyntaxKind.AscendingKeyword, 996If TryEatNewLineAndGetToken(SyntaxKind.CommaToken, comma, createIfMissing:=False) Then
Parser\Parser.vb (45)
2129declarator = ResyncAt(declarator, SyntaxKind.AsKeyword, SyntaxKind.CommaToken, SyntaxKind.NewKeyword, SyntaxKind.EqualsToken) 2135If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 2161If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 2253typeName = ResyncAt(typeName, SyntaxKind.CommaToken, SyntaxKind.EqualsToken) 2278optionalInitializer = ResyncAt(optionalInitializer, SyntaxKind.CommaToken) 2377Initializer = ResyncAt(Initializer, SyntaxKind.CommaToken, SyntaxKind.CloseBraceToken) 2383If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 2477initializer = ResyncAt(initializer, SyntaxKind.CommaToken, SyntaxKind.CloseBraceToken) 2483If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 2616Dim skipped = ResyncAt({SyntaxKind.CommaToken, SyntaxKind.CloseBraceToken}) 2941If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, commaToken) Then 2951Dim skipped = ResyncAt({SyntaxKind.CommaToken, SyntaxKind.CloseParenToken}).Node 2956If CurrentToken.Kind = SyntaxKind.CommaToken Then 2977elementBuilder.AddSeparator(InternalSyntaxFactory.MissingToken(SyntaxKind.CommaToken)) 3116If CurrentToken.Kind = SyntaxKind.CommaToken OrElse CurrentToken.Kind = SyntaxKind.CloseParenToken Then 3144typeName = ResyncAt(typeName, SyntaxKind.CloseParenToken, SyntaxKind.CommaToken) 3150If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 3185If CurrentToken.Kind = SyntaxKind.CommaToken Then 3187commas = ParseSeparators(SyntaxKind.CommaToken) 3247If CurrentToken.Kind = SyntaxKind.CommaToken Then 3249commas = ParseSeparators(SyntaxKind.CommaToken) 3350upperBound = ResyncAt(upperBound, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken, SyntaxKind.AsKeyword) 3364upperBound = ResyncAt(upperBound, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken, SyntaxKind.AsKeyword) 3378If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 3484If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 3560If CurrentToken.Kind <> SyntaxKind.CommaToken Then 3561item = ResyncAt(item, SyntaxKind.CommaToken) 3568If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 4313If CurrentToken.Kind = SyntaxKind.CloseParenToken OrElse CurrentToken.Kind = SyntaxKind.CommaToken OrElse CurrentToken.Kind = SyntaxKind.AsKeyword Then 4346constraint = ResyncAt(constraint, SyntaxKind.CommaToken, SyntaxKind.CloseBraceToken, SyntaxKind.CloseParenToken) 4352If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 4384If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 4497param = param.AddTrailingSyntax(ResyncAt({SyntaxKind.CommaToken, SyntaxKind.CloseParenToken})) 4501If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 4513param = param.AddTrailingSyntax(ResyncAt({SyntaxKind.CommaToken, SyntaxKind.CloseParenToken}), ERRID.ERR_InvalidParameterSyntax) 4515If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 4639If PeekAheadFor(SyntaxKind.AsKeyword, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken) = SyntaxKind.AsKeyword Then 4653optionalAsClause = ResyncAt(optionalAsClause, SyntaxKind.EqualsToken, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken) 4683value = ResyncAt(value, SyntaxKind.CommaToken, SyntaxKind.CloseParenToken) 4711If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 4815If importsClause.ContainsDiagnostics AndAlso CurrentToken.Kind <> SyntaxKind.CommaToken Then 4818importsClause = importsClause.AddTrailingSyntax(ResyncAt({SyntaxKind.CommaToken})) 4865typeName = ResyncAt(typeName, SyntaxKind.CommaToken) 4872If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 5538If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then
Parser\ParseScan.vb (1)
155Case SyntaxKind.CloseParenToken, SyntaxKind.CommaToken
Parser\ParseStatement.vb (9)
321If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 746If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 1314If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 1352eventExpression = ResyncAt(eventExpression, SyntaxKind.CommaToken) 1356TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, commaToken, createIfMissing:=True) 1629If Not TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 1630VerifyExpectedToken(SyntaxKind.CommaToken, comma) 1638If TryGetTokenAndEatNewLine(SyntaxKind.CommaToken, comma) Then 1802nextToken.Kind = SyntaxKind.CommaToken OrElse
Parser\ParseVerify.vb (1)
47Case SyntaxKind.CommaToken
Parser\ParseXml.vb (2)
1209If currToken.Kind <> SyntaxKind.CloseParenToken AndAlso currToken.Kind <> SyntaxKind.CommaToken AndAlso Not firstType Then 1232Debug.Assert(CurrentToken.Kind = SyntaxKind.CommaToken)
Scanner\KeywordTable.vb (1)
223SyntaxKind.CommaToken, CanFollowExpr,
Scanner\ScannerInterpolatedString.vb (1)
61kind = SyntaxKind.CommaToken
Scanner\TokenFactories.vb (1)
415Return MakePunctuationToken(precedingTrivia, spelling, SyntaxKind.CommaToken)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
666AddPunctuation(SyntaxKind.CommaToken)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (6)
63AddPunctuation(SyntaxKind.CommaToken) 292AddPunctuation(SyntaxKind.CommaToken) 391AddPunctuation(SyntaxKind.CommaToken) 492AddPunctuation(SyntaxKind.CommaToken) 559AddPunctuation(SyntaxKind.CommaToken) 569AddPunctuation(SyntaxKind.CommaToken)
Syntax\InternalSyntax\SyntaxNode.vb (1)
236Dim separatorKind As SyntaxKind = SyntaxKind.CommaToken
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
361SyntaxKind.CommaToken,
Syntax\SyntaxFacts.vb (1)
811If kind = SyntaxKind.CommaToken Then Return True
Syntax\SyntaxKindFacts.vb (1)
303SyntaxKind.CommaToken,
Syntax\SyntaxNodeFactories.vb (2)
660SyntaxKind.CommaToken, 896Dim commaToken = Token(SyntaxKind.CommaToken)
Syntax\SyntaxNormalizer.vb (3)
456If token.Kind <> SyntaxKind.CommaToken AndAlso nextToken.Kind = SyntaxKind.OpenParenToken Then 462If (token.Kind = SyntaxKind.CommaToken AndAlso (nextToken.Kind = SyntaxKind.EmptyToken OrElse token.Parent.Kind = SyntaxKind.InterpolationAlignmentClause)) OrElse 463nextToken.Kind = SyntaxKind.CommaToken Then