1 implementation of Pattern
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9021public IPatternOperation Pattern { get; }
16 references to Pattern
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
7491var visitedPattern = (IPatternOperation)VisitRequired(arm.Pattern);
Microsoft.CodeAnalysis.CodeStyle (5)
AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
39if (arm is { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
PopulateSwitchExpressionHelpers.cs (4)
45if (arm.Pattern is IConstantPatternOperation { Value.ConstantValue: { HasValue: true, Value: null } }) 57RemoveIfConstantPatternHasValue(arm.Pattern, enumMembers); 58if (arm.Pattern is IBinaryPatternOperation binaryPattern) 87=> IsDefault(arm.Pattern);
Microsoft.CodeAnalysis.Features (5)
AbstractPopulateSwitchExpressionDiagnosticAnalyzer.cs (1)
39if (arm is { Guard: null, Pattern: IConstantPatternOperation constantPattern } &&
PopulateSwitchExpressionHelpers.cs (4)
45if (arm.Pattern is IConstantPatternOperation { Value.ConstantValue: { HasValue: true, Value: null } }) 57RemoveIfConstantPatternHasValue(arm.Pattern, enumMembers); 58if (arm.Pattern is IBinaryPatternOperation binaryPattern) 87=> IsDefault(arm.Pattern);
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (2)
2098Visit(operation.Pattern, nameof(operation.Pattern));
Compilation\TestOperationVisitor.cs (3)
1543Assert.NotNull(operation.Pattern); 1548? new[] { operation.Pattern, operation.Value } 1549: new[] { operation.Pattern, operation.Guard, operation.Value };