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