1 implementation of Pattern
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7201public IPatternOperation Pattern { get; }
18 references to Pattern
ILLink.RoslynAnalyzer (1)
DataFlow\FeatureChecksVisitor.cs (1)
129 if (GetExpectedValueFromPattern (operation.Pattern) is not bool patternValue)
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
7436var visitedPattern = (IPatternOperation)VisitRequired(operation.Pattern);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
39if (operation.Pattern is not IConstantPatternOperation { Value.ConstantValue.Value: true or false } constantPattern)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
65case IIsPatternOperation { Pattern.Syntax: PatternSyntax pattern } op:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (4)
682constantPattern = (patternOp.Pattern as INegatedPatternOperation)?. 687constantPattern = patternOp.Pattern as IConstantPatternOperation; 828Pattern: IPatternOperation isPattern 1005Pattern: INegatedPatternOperation
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
65case IIsPatternOperation { Pattern.Syntax: PatternSyntax pattern } op:
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (4)
682constantPattern = (patternOp.Pattern as INegatedPatternOperation)?. 687constantPattern = patternOp.Pattern as IConstantPatternOperation; 828Pattern: IPatternOperation isPattern 1005Pattern: INegatedPatternOperation
Microsoft.CodeAnalysis.Features (3)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
336when Supports(Feature.SourcePattern) && CheckTargetExpression(op.Value) && op.Pattern.Syntax is TPatternSyntax pattern:
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
228isPatternOperation.Pattern is IConstantPatternOperation constantPattern)
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
39if (operation.Pattern is not IConstantPatternOperation { Value.ConstantValue.Value: true or false } constantPattern)
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
2059Visit(operation.Pattern, "Pattern");
Compilation\TestOperationVisitor.cs (1)
1574AssertEx.Equal(new[] { operation.Value, operation.Pattern }, operation.ChildOperations);