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