1 implementation of Pattern
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9394public IPatternOperation Pattern { get; }
18 references to Pattern
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
7757var visitedPattern = (IPatternOperation)VisitRequired(arm.Pattern);
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
42if (arm is { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (5)
44if (arm.Pattern is IConstantPatternOperation { Value.ConstantValue: { HasValue: true, Value: null } }) 56RemoveIfConstantPatternHasValue(arm.Pattern, enumMembers); 57if (arm.Pattern is IBinaryPatternOperation binaryPattern) 86=> IsDefault(arm.Pattern); 116var pattern = arm.Pattern;
Microsoft.CodeAnalysis.Features (6)
src\Analyzers\Core\Analyzers\PopulateSwitch\AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
42if (arm is { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (5)
44if (arm.Pattern is IConstantPatternOperation { Value.ConstantValue: { HasValue: true, Value: null } }) 56RemoveIfConstantPatternHasValue(arm.Pattern, enumMembers); 57if (arm.Pattern is IBinaryPatternOperation binaryPattern) 86=> IsDefault(arm.Pattern); 116var pattern = arm.Pattern;
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (2)
2136Visit(operation.Pattern, nameof(operation.Pattern));
Compilation\TestOperationVisitor.cs (3)
1561Assert.NotNull(operation.Pattern); 1566? new[] { operation.Pattern, operation.Value } 1567: new[] { operation.Pattern, operation.Guard, operation.Value };