170 references to RecursivePattern
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFacts.cs (1)
215
case
RecursivePattern
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
109
if (token.Parent.IsKind(SyntaxKind.PositionalPatternClause) && token.Parent.Parent.IsKind(SyntaxKind.
RecursivePattern
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
153
var isFirstTokenOfSwitchArm = currentToken.Parent.IsParentKind(SyntaxKind.
RecursivePattern
, out RecursivePatternSyntax? recursivePattern)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
128
public int? RecursivePattern => (int)SyntaxKind.
RecursivePattern
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\PatternMatchingTests3.cs (8)
4123
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4145
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4166
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4181
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4350
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4372
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4401
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
4415
Assert.Equal(SyntaxKind.
RecursivePattern
, pattern.Kind());
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
324
Debug.Assert(containingPattern.Kind() is SyntaxKind.VarPattern or SyntaxKind.DeclarationPattern or SyntaxKind.
RecursivePattern
);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (154)
Parsing\AwaitParsingTests.cs (1)
1802
N(SyntaxKind.
RecursivePattern
);
Parsing\FunctionPointerTests.cs (3)
2567
N(SyntaxKind.
RecursivePattern
);
2601
N(SyntaxKind.
RecursivePattern
);
2715
N(SyntaxKind.
RecursivePattern
);
Parsing\LambdaReturnTypeParsingTests.cs (8)
4288
N(SyntaxKind.
RecursivePattern
);
4349
N(SyntaxKind.
RecursivePattern
);
4370
N(SyntaxKind.
RecursivePattern
);
4486
N(SyntaxKind.
RecursivePattern
);
4524
N(SyntaxKind.
RecursivePattern
);
4584
N(SyntaxKind.
RecursivePattern
);
4630
N(SyntaxKind.
RecursivePattern
);
4698
N(SyntaxKind.
RecursivePattern
);
Parsing\NullableParsingTests.cs (3)
1977
N(SyntaxKind.
RecursivePattern
);
2020
N(SyntaxKind.
RecursivePattern
);
2181
N(SyntaxKind.
RecursivePattern
);
Parsing\PatternParsingTests.cs (68)
1887
N(SyntaxKind.
RecursivePattern
);
1981
N(SyntaxKind.
RecursivePattern
);
2060
N(SyntaxKind.
RecursivePattern
);
2187
N(SyntaxKind.
RecursivePattern
);
2260
N(SyntaxKind.
RecursivePattern
);
2309
N(SyntaxKind.
RecursivePattern
);
2406
N(SyntaxKind.
RecursivePattern
);
2665
N(SyntaxKind.
RecursivePattern
);
2764
N(SyntaxKind.
RecursivePattern
);
4359
N(SyntaxKind.
RecursivePattern
);
4469
N(SyntaxKind.
RecursivePattern
);
4575
N(SyntaxKind.
RecursivePattern
);
4643
N(SyntaxKind.
RecursivePattern
);
4707
N(SyntaxKind.
RecursivePattern
);
4794
N(SyntaxKind.
RecursivePattern
);
4922
N(SyntaxKind.
RecursivePattern
);
5028
N(SyntaxKind.
RecursivePattern
);
5130
N(SyntaxKind.
RecursivePattern
);
5194
N(SyntaxKind.
RecursivePattern
);
5254
N(SyntaxKind.
RecursivePattern
);
5337
N(SyntaxKind.
RecursivePattern
);
5615
N(SyntaxKind.
RecursivePattern
);
5653
N(SyntaxKind.
RecursivePattern
);
5742
N(SyntaxKind.
RecursivePattern
);
5781
N(SyntaxKind.
RecursivePattern
);
5812
N(SyntaxKind.
RecursivePattern
);
5843
N(SyntaxKind.
RecursivePattern
);
5875
N(SyntaxKind.
RecursivePattern
);
5910
N(SyntaxKind.
RecursivePattern
);
5968
N(SyntaxKind.
RecursivePattern
);
6005
N(SyntaxKind.
RecursivePattern
);
6020
N(SyntaxKind.
RecursivePattern
);
6041
N(SyntaxKind.
RecursivePattern
);
6082
N(SyntaxKind.
RecursivePattern
);
6097
N(SyntaxKind.
RecursivePattern
);
6132
N(SyntaxKind.
RecursivePattern
);
6147
N(SyntaxKind.
RecursivePattern
);
6182
N(SyntaxKind.
RecursivePattern
);
6197
N(SyntaxKind.
RecursivePattern
);
6233
N(SyntaxKind.
RecursivePattern
);
6248
N(SyntaxKind.
RecursivePattern
);
6287
N(SyntaxKind.
RecursivePattern
);
6302
N(SyntaxKind.
RecursivePattern
);
6784
N(SyntaxKind.
RecursivePattern
);
6830
N(SyntaxKind.
RecursivePattern
);
6868
N(SyntaxKind.
RecursivePattern
);
6927
N(SyntaxKind.
RecursivePattern
);
7034
N(SyntaxKind.
RecursivePattern
);
8150
N(SyntaxKind.
RecursivePattern
);
8230
N(SyntaxKind.
RecursivePattern
);
9315
N(SyntaxKind.
RecursivePattern
);
9607
N(SyntaxKind.
RecursivePattern
);
10479
N(SyntaxKind.
RecursivePattern
);
10579
N(SyntaxKind.
RecursivePattern
);
10586
N(SyntaxKind.
RecursivePattern
);
10652
N(SyntaxKind.
RecursivePattern
);
10689
N(SyntaxKind.
RecursivePattern
);
10730
N(SyntaxKind.
RecursivePattern
);
11270
N(SyntaxKind.
RecursivePattern
);
11279
N(SyntaxKind.
RecursivePattern
);
11324
N(SyntaxKind.
RecursivePattern
);
11333
N(SyntaxKind.
RecursivePattern
);
11572
N(SyntaxKind.
RecursivePattern
);
11894
N(SyntaxKind.
RecursivePattern
);
11913
N(SyntaxKind.
RecursivePattern
);
12002
N(SyntaxKind.
RecursivePattern
);
12719
N(SyntaxKind.
RecursivePattern
);
12726
N(SyntaxKind.
RecursivePattern
);
Parsing\PatternParsingTests_ListPatterns.cs (2)
194
N(SyntaxKind.
RecursivePattern
);
221
N(SyntaxKind.
RecursivePattern
);
Parsing\PatternParsingTests2.cs (23)
65
N(SyntaxKind.
RecursivePattern
);
130
N(SyntaxKind.
RecursivePattern
);
137
N(SyntaxKind.
RecursivePattern
);
176
N(SyntaxKind.
RecursivePattern
);
233
N(SyntaxKind.
RecursivePattern
);
290
N(SyntaxKind.
RecursivePattern
);
344
N(SyntaxKind.
RecursivePattern
);
400
N(SyntaxKind.
RecursivePattern
);
456
N(SyntaxKind.
RecursivePattern
);
511
N(SyntaxKind.
RecursivePattern
);
567
N(SyntaxKind.
RecursivePattern
);
615
N(SyntaxKind.
RecursivePattern
);
661
N(SyntaxKind.
RecursivePattern
);
715
N(SyntaxKind.
RecursivePattern
);
786
N(SyntaxKind.
RecursivePattern
);
844
N(SyntaxKind.
RecursivePattern
);
904
N(SyntaxKind.
RecursivePattern
);
1378
N(SyntaxKind.
RecursivePattern
);
1424
N(SyntaxKind.
RecursivePattern
);
1474
N(SyntaxKind.
RecursivePattern
);
1554
N(SyntaxKind.
RecursivePattern
);
1631
N(SyntaxKind.
RecursivePattern
);
1692
N(SyntaxKind.
RecursivePattern
);
Parsing\StatementParsingTests.cs (16)
4801
N(SyntaxKind.
RecursivePattern
);
4820
N(SyntaxKind.
RecursivePattern
);
4841
N(SyntaxKind.
RecursivePattern
);
4860
N(SyntaxKind.
RecursivePattern
);
4928
N(SyntaxKind.
RecursivePattern
);
4947
N(SyntaxKind.
RecursivePattern
);
4968
N(SyntaxKind.
RecursivePattern
);
4987
N(SyntaxKind.
RecursivePattern
);
5061
N(SyntaxKind.
RecursivePattern
);
5076
N(SyntaxKind.
RecursivePattern
);
5091
N(SyntaxKind.
RecursivePattern
);
5112
N(SyntaxKind.
RecursivePattern
);
5127
N(SyntaxKind.
RecursivePattern
);
5142
N(SyntaxKind.
RecursivePattern
);
5449
N(SyntaxKind.
RecursivePattern
);
5469
N(SyntaxKind.
RecursivePattern
);
Parsing\SwitchExpressionParsingTests.cs (30)
2888
N(SyntaxKind.
RecursivePattern
);
2907
N(SyntaxKind.
RecursivePattern
);
2932
N(SyntaxKind.
RecursivePattern
);
2951
N(SyntaxKind.
RecursivePattern
);
3011
N(SyntaxKind.
RecursivePattern
);
3030
N(SyntaxKind.
RecursivePattern
);
3055
N(SyntaxKind.
RecursivePattern
);
3074
N(SyntaxKind.
RecursivePattern
);
3134
N(SyntaxKind.
RecursivePattern
);
3153
N(SyntaxKind.
RecursivePattern
);
3178
N(SyntaxKind.
RecursivePattern
);
3197
N(SyntaxKind.
RecursivePattern
);
3263
N(SyntaxKind.
RecursivePattern
);
3282
N(SyntaxKind.
RecursivePattern
);
3307
N(SyntaxKind.
RecursivePattern
);
3326
N(SyntaxKind.
RecursivePattern
);
3392
N(SyntaxKind.
RecursivePattern
);
3411
N(SyntaxKind.
RecursivePattern
);
3426
N(SyntaxKind.
RecursivePattern
);
3451
N(SyntaxKind.
RecursivePattern
);
3470
N(SyntaxKind.
RecursivePattern
);
3485
N(SyntaxKind.
RecursivePattern
);
3557
N(SyntaxKind.
RecursivePattern
);
3576
N(SyntaxKind.
RecursivePattern
);
3591
N(SyntaxKind.
RecursivePattern
);
3616
N(SyntaxKind.
RecursivePattern
);
3635
N(SyntaxKind.
RecursivePattern
);
3650
N(SyntaxKind.
RecursivePattern
);
4167
N(SyntaxKind.
RecursivePattern
);
4193
N(SyntaxKind.
RecursivePattern
);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
109
if (token.Parent.IsKind(SyntaxKind.PositionalPatternClause) && token.Parent.Parent.IsKind(SyntaxKind.
RecursivePattern
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (1)
153
var isFirstTokenOfSwitchArm = currentToken.Parent.IsParentKind(SyntaxKind.
RecursivePattern
, out RecursivePatternSyntax? recursivePattern)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
128
public int? RecursivePattern => (int)SyntaxKind.
RecursivePattern
;