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