125 references to PropertyPatternClause
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpSemanticModel.cs (1)
4494if (parent3.IsKind(SyntaxKind.PropertyPatternClause) || parent3.IsKind(SyntaxKind.PositionalPatternClause))
Syntax\SyntaxNormalizer.cs (2)
470if (token.Parent.IsKind(SyntaxKind.PropertyPatternClause)) 474else if (next.Parent.IsKind(SyntaxKind.PropertyPatternClause))
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
178return token.Parent is ExpressionSyntax || token.Parent.IsKind(SyntaxKind.PropertyPatternClause); 343=> token.Kind() == SyntaxKind.CommaToken && token.Parent.IsKind(SyntaxKind.PropertyPatternClause);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (1)
184else if (node.IsKind(SyntaxKind.PropertyPatternClause))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
227if (node.IsLambdaBodyBlock() || node.IsAnonymousMethodBlock() || node.Kind() is SyntaxKind.PropertyPatternClause or SyntaxKind.SwitchExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
143else if (currentToken.Parent.IsKind(SyntaxKind.PropertyPatternClause)) 344currentToken.Parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.CollectionInitializerExpression or SyntaxKind.WithInitializerExpression or SyntaxKind.PropertyPatternClause)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
640=> node.Kind() == SyntaxKind.PropertyPatternClause;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests_ListPatterns.cs (1)
3677.Where(p => p.IsKind(SyntaxKind.PropertyPatternClause));
Microsoft.CodeAnalysis.CSharp.Features (1)
BraceCompletion\CurlyBraceCompletionService.cs (1)
145SyntaxKind.PropertyPatternClause))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (106)
Parsing\AwaitParsingTests.cs (1)
1804N(SyntaxKind.PropertyPatternClause);
Parsing\FunctionPointerTests.cs (1)
2586N(SyntaxKind.PropertyPatternClause);
Parsing\LambdaReturnTypeParsingTests.cs (1)
4372N(SyntaxKind.PropertyPatternClause);
Parsing\NullableParsingTests.cs (2)
1979N(SyntaxKind.PropertyPatternClause); 2022N(SyntaxKind.PropertyPatternClause);
Parsing\PatternParsingTests.cs (32)
2108N(SyntaxKind.PropertyPatternClause); 4407N(SyntaxKind.PropertyPatternClause); 4513N(SyntaxKind.PropertyPatternClause); 4581N(SyntaxKind.PropertyPatternClause); 4645N(SyntaxKind.PropertyPatternClause); 4970N(SyntaxKind.PropertyPatternClause); 5072N(SyntaxKind.PropertyPatternClause); 5136N(SyntaxKind.PropertyPatternClause); 5196N(SyntaxKind.PropertyPatternClause); 5655N(SyntaxKind.PropertyPatternClause); 5860N(SyntaxKind.PropertyPatternClause); 5970N(SyntaxKind.PropertyPatternClause); 6007N(SyntaxKind.PropertyPatternClause); 6043N(SyntaxKind.PropertyPatternClause); 6084N(SyntaxKind.PropertyPatternClause); 6134N(SyntaxKind.PropertyPatternClause); 6184N(SyntaxKind.PropertyPatternClause); 6214N(SyntaxKind.PropertyPatternClause); 6235N(SyntaxKind.PropertyPatternClause); 6289N(SyntaxKind.PropertyPatternClause); 6786N(SyntaxKind.PropertyPatternClause); 6832N(SyntaxKind.PropertyPatternClause); 7036N(SyntaxKind.PropertyPatternClause); 8165N(SyntaxKind.PropertyPatternClause); 8232N(SyntaxKind.PropertyPatternClause); 10737N(SyntaxKind.PropertyPatternClause); 11272N(SyntaxKind.PropertyPatternClause); 11281N(SyntaxKind.PropertyPatternClause); 11326N(SyntaxKind.PropertyPatternClause); 11900N(SyntaxKind.PropertyPatternClause); 12721N(SyntaxKind.PropertyPatternClause); 12728N(SyntaxKind.PropertyPatternClause);
Parsing\PatternParsingTests_ListPatterns.cs (1)
223N(SyntaxKind.PropertyPatternClause);
Parsing\PatternParsingTests2.cs (22)
67N(SyntaxKind.PropertyPatternClause); 132N(SyntaxKind.PropertyPatternClause); 139N(SyntaxKind.PropertyPatternClause); 178N(SyntaxKind.PropertyPatternClause); 235N(SyntaxKind.PropertyPatternClause); 292N(SyntaxKind.PropertyPatternClause); 346N(SyntaxKind.PropertyPatternClause); 402N(SyntaxKind.PropertyPatternClause); 458N(SyntaxKind.PropertyPatternClause); 513N(SyntaxKind.PropertyPatternClause); 569N(SyntaxKind.PropertyPatternClause); 617N(SyntaxKind.PropertyPatternClause); 663N(SyntaxKind.PropertyPatternClause); 717N(SyntaxKind.PropertyPatternClause); 788N(SyntaxKind.PropertyPatternClause); 846N(SyntaxKind.PropertyPatternClause); 1380N(SyntaxKind.PropertyPatternClause); 1426N(SyntaxKind.PropertyPatternClause); 1476N(SyntaxKind.PropertyPatternClause); 1556N(SyntaxKind.PropertyPatternClause); 1633N(SyntaxKind.PropertyPatternClause); 1694N(SyntaxKind.PropertyPatternClause);
Parsing\StatementParsingTests.cs (16)
4807N(SyntaxKind.PropertyPatternClause); 4826N(SyntaxKind.PropertyPatternClause); 4847N(SyntaxKind.PropertyPatternClause); 4866N(SyntaxKind.PropertyPatternClause); 4934N(SyntaxKind.PropertyPatternClause); 4953N(SyntaxKind.PropertyPatternClause); 4974N(SyntaxKind.PropertyPatternClause); 4993N(SyntaxKind.PropertyPatternClause); 5063N(SyntaxKind.PropertyPatternClause); 5078N(SyntaxKind.PropertyPatternClause); 5093N(SyntaxKind.PropertyPatternClause); 5114N(SyntaxKind.PropertyPatternClause); 5129N(SyntaxKind.PropertyPatternClause); 5144N(SyntaxKind.PropertyPatternClause); 5451N(SyntaxKind.PropertyPatternClause); 5471N(SyntaxKind.PropertyPatternClause);
Parsing\SwitchExpressionParsingTests.cs (30)
2894N(SyntaxKind.PropertyPatternClause); 2913N(SyntaxKind.PropertyPatternClause); 2938N(SyntaxKind.PropertyPatternClause); 2957N(SyntaxKind.PropertyPatternClause); 3017N(SyntaxKind.PropertyPatternClause); 3036N(SyntaxKind.PropertyPatternClause); 3061N(SyntaxKind.PropertyPatternClause); 3080N(SyntaxKind.PropertyPatternClause); 3140N(SyntaxKind.PropertyPatternClause); 3159N(SyntaxKind.PropertyPatternClause); 3184N(SyntaxKind.PropertyPatternClause); 3203N(SyntaxKind.PropertyPatternClause); 3269N(SyntaxKind.PropertyPatternClause); 3288N(SyntaxKind.PropertyPatternClause); 3313N(SyntaxKind.PropertyPatternClause); 3332N(SyntaxKind.PropertyPatternClause); 3398N(SyntaxKind.PropertyPatternClause); 3413N(SyntaxKind.PropertyPatternClause); 3428N(SyntaxKind.PropertyPatternClause); 3457N(SyntaxKind.PropertyPatternClause); 3472N(SyntaxKind.PropertyPatternClause); 3487N(SyntaxKind.PropertyPatternClause); 3563N(SyntaxKind.PropertyPatternClause); 3578N(SyntaxKind.PropertyPatternClause); 3593N(SyntaxKind.PropertyPatternClause); 3622N(SyntaxKind.PropertyPatternClause); 3637N(SyntaxKind.PropertyPatternClause); 3652N(SyntaxKind.PropertyPatternClause); 4169N(SyntaxKind.PropertyPatternClause); 4195N(SyntaxKind.PropertyPatternClause);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
178return token.Parent is ExpressionSyntax || token.Parent.IsKind(SyntaxKind.PropertyPatternClause); 343=> token.Kind() == SyntaxKind.CommaToken && token.Parent.IsKind(SyntaxKind.PropertyPatternClause);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\BaseFormattingRule.cs (1)
184else if (node.IsKind(SyntaxKind.PropertyPatternClause))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
227if (node.IsLambdaBodyBlock() || node.IsAnonymousMethodBlock() || node.Kind() is SyntaxKind.PropertyPatternClause or SyntaxKind.SwitchExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (2)
143else if (currentToken.Parent.IsKind(SyntaxKind.PropertyPatternClause)) 344currentToken.Parent.Kind() is SyntaxKind.ObjectInitializerExpression or SyntaxKind.CollectionInitializerExpression or SyntaxKind.WithInitializerExpression or SyntaxKind.PropertyPatternClause)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
640=> node.Kind() == SyntaxKind.PropertyPatternClause;