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