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