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