154 references to DotDotToken
Microsoft.CodeAnalysis.CSharp (9)
Parser\Blender.Reader.cs (1)
307
case SyntaxKind.
DotDotToken
:
Parser\LanguageParser.cs (5)
11190
return (SyntaxKind.
DotDotToken
, SyntaxKind.RangeExpression);
11243
if (operatorTokenKind is SyntaxKind.
DotDotToken
)
11374
/// <summary>Check if we're currently at a .. sequence that can then be parsed out as a <see cref="SyntaxKind.
DotDotToken
"/>.</summary>
11383
/// <summary>Consume the next two tokens as a <see cref="SyntaxKind.
DotDotToken
"/>. Note: if three dot tokens
11392
var dotDotToken = SyntaxFactory.Token(token1.GetLeadingTrivia(), SyntaxKind.
DotDotToken
, token2.GetTrailingTrivia());
Parser\Lexer.cs (1)
3723
info.Kind = SyntaxKind.
DotDotToken
;
Syntax\SyntaxKindFacts.cs (2)
179
for (int i = (int)SyntaxKind.TildeToken; i <= (int)SyntaxKind.
DotDotToken
; i++)
1497
case SyntaxKind.
DotDotToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
27
public static readonly SyntaxToken DotDotToken = Token(SyntaxKind.
DotDotToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
95
(targetToken.IsKind(SyntaxKind.
DotDotToken
) && position == targetToken.SpanStart + 1) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (3)
465
if (previousKind == SyntaxKind.
DotDotToken
&& previousParentKind == SyntaxKind.SlicePattern)
537
if (previousKind == SyntaxKind.
DotDotToken
&& previousParentKind == SyntaxKind.RangeExpression)
548
if (currentKind == SyntaxKind.
DotDotToken
&& currentParentKind == SyntaxKind.RangeExpression)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1412
if (leftToken.IsKind(SyntaxKind.
DotDotToken
) && leftToken.Parent.IsKind(SyntaxKind.SlicePattern))
1489
or SyntaxKind.
DotDotToken
2374
if (token.IsKind(SyntaxKind.
DotDotToken
) &&
2707
if (token.Kind() is SyntaxKind.OpenBracketToken or SyntaxKind.
DotDotToken
or SyntaxKind.CommaToken &&
2716
if (token.Kind() is SyntaxKind.
DotDotToken
&&
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\CompletionUtilities.cs (1)
40
if (token.Kind() == SyntaxKind.
DotDotToken
&& token.SpanStart == characterPosition)
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
147
dotLikeToken.Kind() == SyntaxKind.
DotDotToken
? dotLikeToken.Span.Start + 1 : dotLikeToken.Span.End),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (123)
Generated\Syntax.Test.xml.Generated.cs (12)
101
=> InternalSyntaxFactory.RangeExpression(null, InternalSyntaxFactory.Token(SyntaxKind.
DotDotToken
), null);
224
=> InternalSyntaxFactory.SpreadElement(InternalSyntaxFactory.Token(SyntaxKind.
DotDotToken
), GenerateIdentifierName());
320
=> InternalSyntaxFactory.SlicePattern(InternalSyntaxFactory.Token(SyntaxKind.
DotDotToken
), null);
1081
Assert.Equal(SyntaxKind.
DotDotToken
, node.OperatorToken.Kind);
1579
Assert.Equal(SyntaxKind.
DotDotToken
, node.OperatorToken.Kind);
1954
Assert.Equal(SyntaxKind.
DotDotToken
, node.DotDotToken.Kind);
10317
=> SyntaxFactory.RangeExpression(default(ExpressionSyntax), SyntaxFactory.Token(SyntaxKind.
DotDotToken
), default(ExpressionSyntax));
10440
=> SyntaxFactory.SpreadElement(SyntaxFactory.Token(SyntaxKind.
DotDotToken
), GenerateIdentifierName());
10536
=> SyntaxFactory.SlicePattern(SyntaxFactory.Token(SyntaxKind.
DotDotToken
), default(PatternSyntax));
11297
Assert.Equal(SyntaxKind.
DotDotToken
, node.OperatorToken.Kind());
11795
Assert.Equal(SyntaxKind.
DotDotToken
, node.OperatorToken.Kind());
12170
Assert.Equal(SyntaxKind.
DotDotToken
, node.DotDotToken.Kind());
Parsing\CollectionExpressionParsingTests.cs (27)
5363
N(SyntaxKind.
DotDotToken
);
5766
N(SyntaxKind.
DotDotToken
);
6084
N(SyntaxKind.
DotDotToken
);
6379
N(SyntaxKind.
DotDotToken
);
6400
N(SyntaxKind.
DotDotToken
);
6403
N(SyntaxKind.
DotDotToken
);
6421
N(SyntaxKind.
DotDotToken
);
6424
N(SyntaxKind.
DotDotToken
);
6446
N(SyntaxKind.
DotDotToken
);
6453
N(SyntaxKind.
DotDotToken
);
6471
N(SyntaxKind.
DotDotToken
);
6478
N(SyntaxKind.
DotDotToken
);
6500
N(SyntaxKind.
DotDotToken
);
6525
N(SyntaxKind.
DotDotToken
);
6554
N(SyntaxKind.
DotDotToken
);
6583
N(SyntaxKind.
DotDotToken
);
6612
N(SyntaxKind.
DotDotToken
);
6646
N(SyntaxKind.
DotDotToken
);
6653
N(SyntaxKind.
DotDotToken
);
6978
N(SyntaxKind.
DotDotToken
);
7002
N(SyntaxKind.
DotDotToken
);
7026
N(SyntaxKind.
DotDotToken
);
7029
N(SyntaxKind.
DotDotToken
);
11535
N(SyntaxKind.
DotDotToken
);
11550
N(SyntaxKind.
DotDotToken
);
11608
N(SyntaxKind.
DotDotToken
);
11623
N(SyntaxKind.
DotDotToken
);
Parsing\ExpressionParsingTests.cs (35)
5297
N(SyntaxKind.
DotDotToken
);
5316
N(SyntaxKind.
DotDotToken
);
5339
N(SyntaxKind.
DotDotToken
);
5371
N(SyntaxKind.
DotDotToken
);
5406
N(SyntaxKind.
DotDotToken
);
5441
N(SyntaxKind.
DotDotToken
);
5470
N(SyntaxKind.
DotDotToken
);
5497
N(SyntaxKind.
DotDotToken
);
5524
N(SyntaxKind.
DotDotToken
);
5542
N(SyntaxKind.
DotDotToken
);
5561
N(SyntaxKind.
DotDotToken
);
5582
N(SyntaxKind.
DotDotToken
);
5585
N(SyntaxKind.
DotDotToken
);
5597
N(SyntaxKind.
DotDotToken
);
5600
N(SyntaxKind.
DotDotToken
);
5616
N(SyntaxKind.
DotDotToken
);
5623
N(SyntaxKind.
DotDotToken
);
5639
N(SyntaxKind.
DotDotToken
);
5642
N(SyntaxKind.
DotDotToken
);
5662
N(SyntaxKind.
DotDotToken
);
5669
N(SyntaxKind.
DotDotToken
);
5685
N(SyntaxKind.
DotDotToken
);
5692
N(SyntaxKind.
DotDotToken
);
5713
N(SyntaxKind.
DotDotToken
);
5741
N(SyntaxKind.
DotDotToken
);
5756
N(SyntaxKind.
DotDotToken
);
5779
N(SyntaxKind.
DotDotToken
);
5798
N(SyntaxKind.
DotDotToken
);
5809
N(SyntaxKind.
DotDotToken
);
5829
N(SyntaxKind.
DotDotToken
);
5877
N(SyntaxKind.
DotDotToken
);
5896
N(SyntaxKind.
DotDotToken
);
5907
N(SyntaxKind.
DotDotToken
);
5942
N(SyntaxKind.
DotDotToken
);
5987
N(SyntaxKind.
DotDotToken
);
Parsing\LambdaAttributeParsingTests.cs (2)
1927
N(SyntaxKind.
DotDotToken
);
1958
N(SyntaxKind.
DotDotToken
);
Parsing\LambdaReturnTypeParsingTests.cs (2)
4736
N(SyntaxKind.
DotDotToken
);
4796
N(SyntaxKind.
DotDotToken
);
Parsing\PatternParsingTests_ListPatterns.cs (30)
465
N(SyntaxKind.
DotDotToken
);
491
N(SyntaxKind.
DotDotToken
);
521
N(SyntaxKind.
DotDotToken
);
544
N(SyntaxKind.
DotDotToken
);
547
N(SyntaxKind.
DotDotToken
);
571
N(SyntaxKind.
DotDotToken
);
601
N(SyntaxKind.
DotDotToken
);
637
N(SyntaxKind.
DotDotToken
);
680
N(SyntaxKind.
DotDotToken
);
693
N(SyntaxKind.
DotDotToken
);
724
N(SyntaxKind.
DotDotToken
);
752
N(SyntaxKind.
DotDotToken
);
794
N(SyntaxKind.
DotDotToken
);
828
N(SyntaxKind.
DotDotToken
);
859
N(SyntaxKind.
DotDotToken
);
933
N(SyntaxKind.
DotDotToken
);
962
N(SyntaxKind.
DotDotToken
);
967
N(SyntaxKind.
DotDotToken
);
1020
N(SyntaxKind.
DotDotToken
);
1058
N(SyntaxKind.
DotDotToken
);
1086
N(SyntaxKind.
DotDotToken
);
1119
N(SyntaxKind.
DotDotToken
);
1155
N(SyntaxKind.
DotDotToken
);
1195
N(SyntaxKind.
DotDotToken
);
1246
N(SyntaxKind.
DotDotToken
);
1297
N(SyntaxKind.
DotDotToken
);
1360
N(SyntaxKind.
DotDotToken
);
1423
N(SyntaxKind.
DotDotToken
);
1490
N(SyntaxKind.
DotDotToken
);
1557
N(SyntaxKind.
DotDotToken
);
Parsing\RangeExpressionParsingTests.cs (11)
28
N(SyntaxKind.
DotDotToken
);
49
N(SyntaxKind.
DotDotToken
);
73
N(SyntaxKind.
DotDotToken
);
103
N(SyntaxKind.
DotDotToken
);
123
N(SyntaxKind.
DotDotToken
);
128
N(SyntaxKind.
DotDotToken
);
148
N(SyntaxKind.
DotDotToken
);
182
N(SyntaxKind.
DotDotToken
);
206
N(SyntaxKind.
DotDotToken
);
215
N(SyntaxKind.
DotDotToken
);
249
N(SyntaxKind.
DotDotToken
);
Parsing\StatementAttributeParsingTests.cs (4)
5797
N(SyntaxKind.
DotDotToken
);
5903
N(SyntaxKind.
DotDotToken
);
5998
N(SyntaxKind.
DotDotToken
);
6094
N(SyntaxKind.
DotDotToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
27
public static readonly SyntaxToken DotDotToken = Token(SyntaxKind.
DotDotToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
95
(targetToken.IsKind(SyntaxKind.
DotDotToken
) && position == targetToken.SpanStart + 1) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (3)
465
if (previousKind == SyntaxKind.
DotDotToken
&& previousParentKind == SyntaxKind.SlicePattern)
537
if (previousKind == SyntaxKind.
DotDotToken
&& previousParentKind == SyntaxKind.RangeExpression)
548
if (currentKind == SyntaxKind.
DotDotToken
&& currentParentKind == SyntaxKind.RangeExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (5)
1412
if (leftToken.IsKind(SyntaxKind.
DotDotToken
) && leftToken.Parent.IsKind(SyntaxKind.SlicePattern))
1489
or SyntaxKind.
DotDotToken
2374
if (token.IsKind(SyntaxKind.
DotDotToken
) &&
2707
if (token.Kind() is SyntaxKind.OpenBracketToken or SyntaxKind.
DotDotToken
or SyntaxKind.CommaToken &&
2716
if (token.Kind() is SyntaxKind.
DotDotToken
&&