198 references to IsPatternExpression
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
804
case SyntaxKind.
IsPatternExpression
:
Parser\LanguageParser.cs (2)
10771
case SyntaxKind.
IsPatternExpression
:
11099
leftOperand.Kind == SyntaxKind.
IsPatternExpression
? ErrorCode.ERR_UnexpectedToken : ErrorCode.WRN_PrecedenceInversion,
Parser\LanguageParser_Patterns.cs (1)
23
var pattern = ParsePattern(GetPrecedence(SyntaxKind.
IsPatternExpression
), afterIs: true);
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
49
SyntaxKind.
IsPatternExpression
,
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
28
=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.IsExpression, SyntaxKind.
IsPatternExpression
);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (2)
55
SyntaxKind.
IsPatternExpression
));
362
&& comparisonKind == SyntaxKind.
IsPatternExpression
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
771
case SyntaxKind.
IsPatternExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
103
public int? IsPatternExpression => (int)SyntaxKind.
IsPatternExpression
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
70
Debug.Assert(node.Kind() is SyntaxKind.IsExpression or SyntaxKind.
IsPatternExpression
);
78
n => n.Kind() is SyntaxKind.IsExpression or SyntaxKind.
IsPatternExpression
);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169
if (comparison.Kind() is not (SyntaxKind.EqualsExpression or SyntaxKind.
IsPatternExpression
))
Microsoft.CodeAnalysis.CSharp.Features (9)
ExtractMethod\CSharpSelectionValidator.cs (1)
373
if (commonNode.Kind() == SyntaxKind.
IsPatternExpression
)
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
179
if (expression.IsParentKind(SyntaxKind.
IsPatternExpression
))
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
49
SyntaxKind.
IsPatternExpression
,
src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
28
=> context.RegisterSyntaxNodeAction(AnalyzeSyntax, SyntaxKind.IsExpression, SyntaxKind.
IsPatternExpression
);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (2)
55
SyntaxKind.
IsPatternExpression
));
362
&& comparisonKind == SyntaxKind.
IsPatternExpression
)
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
70
Debug.Assert(node.Kind() is SyntaxKind.IsExpression or SyntaxKind.
IsPatternExpression
);
78
n => n.Kind() is SyntaxKind.IsExpression or SyntaxKind.
IsPatternExpression
);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (1)
169
if (comparison.Kind() is not (SyntaxKind.EqualsExpression or SyntaxKind.
IsPatternExpression
))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (174)
Parsing\AsyncParsingTests.cs (2)
2700
N(SyntaxKind.
IsPatternExpression
);
2796
N(SyntaxKind.
IsPatternExpression
);
Parsing\AwaitParsingTests.cs (1)
1795
N(SyntaxKind.
IsPatternExpression
);
Parsing\CollectionExpressionParsingTests.cs (1)
1128
N(SyntaxKind.
IsPatternExpression
);
Parsing\DeclarationExpressionTests.cs (2)
147
N(SyntaxKind.
IsPatternExpression
);
234
N(SyntaxKind.
IsPatternExpression
);
Parsing\DeconstructionTests.cs (2)
2700
N(SyntaxKind.
IsPatternExpression
);
2762
N(SyntaxKind.
IsPatternExpression
);
Parsing\FunctionPointerTests.cs (1)
2506
N(SyntaxKind.
IsPatternExpression
);
Parsing\LambdaAttributeParsingTests.cs (1)
2167
N(SyntaxKind.
IsPatternExpression
);
Parsing\LambdaReturnTypeParsingTests.cs (1)
4691
N(SyntaxKind.
IsPatternExpression
);
Parsing\NullableParsingTests.cs (7)
1830
N(SyntaxKind.
IsPatternExpression
);
1864
N(SyntaxKind.
IsPatternExpression
);
1906
N(SyntaxKind.
IsPatternExpression
);
1956
N(SyntaxKind.
IsPatternExpression
);
1995
N(SyntaxKind.
IsPatternExpression
);
2156
N(SyntaxKind.
IsPatternExpression
);
2325
N(SyntaxKind.
IsPatternExpression
);
Parsing\PatternParsingTests.cs (86)
561
N(SyntaxKind.
IsPatternExpression
);
591
N(SyntaxKind.
IsPatternExpression
);
623
N(SyntaxKind.
IsPatternExpression
);
680
N(SyntaxKind.
IsPatternExpression
);
710
N(SyntaxKind.
IsPatternExpression
);
740
N(SyntaxKind.
IsPatternExpression
);
770
N(SyntaxKind.
IsPatternExpression
);
1055
N(SyntaxKind.
IsPatternExpression
);
1093
N(SyntaxKind.
IsPatternExpression
);
1174
N(SyntaxKind.
IsPatternExpression
);
3182
N(SyntaxKind.
IsPatternExpression
);
3247
N(SyntaxKind.
IsPatternExpression
);
3432
N(SyntaxKind.
IsPatternExpression
);
3497
N(SyntaxKind.
IsPatternExpression
);
3714
N(SyntaxKind.
IsPatternExpression
);
3795
N(SyntaxKind.
IsPatternExpression
);
4352
N(SyntaxKind.
IsPatternExpression
);
4462
N(SyntaxKind.
IsPatternExpression
);
4568
N(SyntaxKind.
IsPatternExpression
);
4636
N(SyntaxKind.
IsPatternExpression
);
4700
N(SyntaxKind.
IsPatternExpression
);
4787
N(SyntaxKind.
IsPatternExpression
);
4870
N(SyntaxKind.
IsPatternExpression
);
4915
N(SyntaxKind.
IsPatternExpression
);
5021
N(SyntaxKind.
IsPatternExpression
);
5123
N(SyntaxKind.
IsPatternExpression
);
5187
N(SyntaxKind.
IsPatternExpression
);
5247
N(SyntaxKind.
IsPatternExpression
);
5330
N(SyntaxKind.
IsPatternExpression
);
5608
N(SyntaxKind.
IsPatternExpression
);
5646
N(SyntaxKind.
IsPatternExpression
);
6777
N(SyntaxKind.
IsPatternExpression
);
6823
N(SyntaxKind.
IsPatternExpression
);
6861
N(SyntaxKind.
IsPatternExpression
);
6920
N(SyntaxKind.
IsPatternExpression
);
7027
N(SyntaxKind.
IsPatternExpression
);
8143
N(SyntaxKind.
IsPatternExpression
);
8185
N(SyntaxKind.
IsPatternExpression
);
8223
N(SyntaxKind.
IsPatternExpression
);
8278
N(SyntaxKind.
IsPatternExpression
);
8340
N(SyntaxKind.
IsPatternExpression
);
8399
N(SyntaxKind.
IsPatternExpression
);
8448
N(SyntaxKind.
IsPatternExpression
);
9136
N(SyntaxKind.
IsPatternExpression
);
9176
N(SyntaxKind.
IsPatternExpression
);
9220
N(SyntaxKind.
IsPatternExpression
);
9265
N(SyntaxKind.
IsPatternExpression
);
9371
N(SyntaxKind.
IsPatternExpression
);
9418
N(SyntaxKind.
IsPatternExpression
);
9723
N(SyntaxKind.
IsPatternExpression
);
9776
N(SyntaxKind.
IsPatternExpression
);
9842
N(SyntaxKind.
IsPatternExpression
);
9915
N(SyntaxKind.
IsPatternExpression
);
9955
N(SyntaxKind.
IsPatternExpression
);
10005
N(SyntaxKind.
IsPatternExpression
);
10051
N(SyntaxKind.
IsPatternExpression
);
10106
N(SyntaxKind.
IsPatternExpression
);
10155
N(SyntaxKind.
IsPatternExpression
);
10203
N(SyntaxKind.
IsPatternExpression
);
10247
N(SyntaxKind.
IsPatternExpression
);
10349
N(SyntaxKind.
IsPatternExpression
);
10390
N(SyntaxKind.
IsPatternExpression
);
10431
N(SyntaxKind.
IsPatternExpression
);
10472
N(SyntaxKind.
IsPatternExpression
);
10527
N(SyntaxKind.
IsPatternExpression
);
10572
N(SyntaxKind.
IsPatternExpression
);
10645
N(SyntaxKind.
IsPatternExpression
);
10682
N(SyntaxKind.
IsPatternExpression
);
10723
N(SyntaxKind.
IsPatternExpression
);
10765
N(SyntaxKind.
IsPatternExpression
);
10818
N(SyntaxKind.
IsPatternExpression
);
10867
N(SyntaxKind.
IsPatternExpression
);
10924
N(SyntaxKind.
IsPatternExpression
);
10985
N(SyntaxKind.
IsPatternExpression
);
11036
N(SyntaxKind.
IsPatternExpression
);
11088
N(SyntaxKind.
IsPatternExpression
);
11141
N(SyntaxKind.
IsPatternExpression
);
11198
N(SyntaxKind.
IsPatternExpression
);
11371
N(SyntaxKind.
IsPatternExpression
);
11481
N(SyntaxKind.
IsPatternExpression
);
11565
N(SyntaxKind.
IsPatternExpression
);
11625
N(SyntaxKind.
IsPatternExpression
);
11683
N(SyntaxKind.
IsPatternExpression
);
11887
N(SyntaxKind.
IsPatternExpression
);
11995
N(SyntaxKind.
IsPatternExpression
);
12703
N(SyntaxKind.
IsPatternExpression
);
Parsing\PatternParsingTests_ListPatterns.cs (38)
37
N(SyntaxKind.
IsPatternExpression
);
70
N(SyntaxKind.
IsPatternExpression
);
108
N(SyntaxKind.
IsPatternExpression
);
155
N(SyntaxKind.
IsPatternExpression
);
187
N(SyntaxKind.
IsPatternExpression
);
214
N(SyntaxKind.
IsPatternExpression
);
238
N(SyntaxKind.
IsPatternExpression
);
275
N(SyntaxKind.
IsPatternExpression
);
315
N(SyntaxKind.
IsPatternExpression
);
354
N(SyntaxKind.
IsPatternExpression
);
453
N(SyntaxKind.
IsPatternExpression
);
479
N(SyntaxKind.
IsPatternExpression
);
512
N(SyntaxKind.
IsPatternExpression
);
535
N(SyntaxKind.
IsPatternExpression
);
559
N(SyntaxKind.
IsPatternExpression
);
589
N(SyntaxKind.
IsPatternExpression
);
625
N(SyntaxKind.
IsPatternExpression
);
668
N(SyntaxKind.
IsPatternExpression
);
715
N(SyntaxKind.
IsPatternExpression
);
743
N(SyntaxKind.
IsPatternExpression
);
773
N(SyntaxKind.
IsPatternExpression
);
812
N(SyntaxKind.
IsPatternExpression
);
841
N(SyntaxKind.
IsPatternExpression
);
878
N(SyntaxKind.
IsPatternExpression
);
921
N(SyntaxKind.
IsPatternExpression
);
950
N(SyntaxKind.
IsPatternExpression
);
985
N(SyntaxKind.
IsPatternExpression
);
1037
N(SyntaxKind.
IsPatternExpression
);
1074
N(SyntaxKind.
IsPatternExpression
);
1107
N(SyntaxKind.
IsPatternExpression
);
1143
N(SyntaxKind.
IsPatternExpression
);
1183
N(SyntaxKind.
IsPatternExpression
);
1234
N(SyntaxKind.
IsPatternExpression
);
1285
N(SyntaxKind.
IsPatternExpression
);
1348
N(SyntaxKind.
IsPatternExpression
);
1411
N(SyntaxKind.
IsPatternExpression
);
1478
N(SyntaxKind.
IsPatternExpression
);
1545
N(SyntaxKind.
IsPatternExpression
);
Parsing\PatternParsingTests2.cs (26)
58
N(SyntaxKind.
IsPatternExpression
);
123
N(SyntaxKind.
IsPatternExpression
);
169
N(SyntaxKind.
IsPatternExpression
);
226
N(SyntaxKind.
IsPatternExpression
);
283
N(SyntaxKind.
IsPatternExpression
);
337
N(SyntaxKind.
IsPatternExpression
);
393
N(SyntaxKind.
IsPatternExpression
);
449
N(SyntaxKind.
IsPatternExpression
);
504
N(SyntaxKind.
IsPatternExpression
);
560
N(SyntaxKind.
IsPatternExpression
);
608
N(SyntaxKind.
IsPatternExpression
);
654
N(SyntaxKind.
IsPatternExpression
);
708
N(SyntaxKind.
IsPatternExpression
);
779
N(SyntaxKind.
IsPatternExpression
);
837
N(SyntaxKind.
IsPatternExpression
);
897
N(SyntaxKind.
IsPatternExpression
);
996
N(SyntaxKind.
IsPatternExpression
);
1087
N(SyntaxKind.
IsPatternExpression
);
1156
N(SyntaxKind.
IsPatternExpression
);
1304
N(SyntaxKind.
IsPatternExpression
);
1371
N(SyntaxKind.
IsPatternExpression
);
1417
N(SyntaxKind.
IsPatternExpression
);
1467
N(SyntaxKind.
IsPatternExpression
);
1547
N(SyntaxKind.
IsPatternExpression
);
1624
N(SyntaxKind.
IsPatternExpression
);
1685
N(SyntaxKind.
IsPatternExpression
);
Parsing\RangeExpressionParsingTests.cs (3)
230
N(SyntaxKind.
IsPatternExpression
);
265
N(SyntaxKind.
IsPatternExpression
);
296
N(SyntaxKind.
IsPatternExpression
);
Parsing\RecordParsing.cs (2)
1859
N(SyntaxKind.
IsPatternExpression
);
2021
N(SyntaxKind.
IsPatternExpression
);
Parsing\StatementParsingTests.cs (1)
4661
N(SyntaxKind.
IsPatternExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
771
case SyntaxKind.
IsPatternExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
103
public int? IsPatternExpression => (int)SyntaxKind.
IsPatternExpression
;