1 implementation of LeftPattern
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
9897
public IPatternOperation
LeftPattern
{ get; }
16 references to LeftPattern
Microsoft.CodeAnalysis (6)
Operations\ControlFlowGraphBuilder.cs (4)
7568
if (operation.
LeftPattern
is not IBinaryPatternOperation)
7570
return createOperation(this, operation, (IPatternOperation)VisitRequired(operation.
LeftPattern
));
7580
current = current.
LeftPattern
as IBinaryPatternOperation;
7584
var result = (IPatternOperation)VisitRequired(current.
LeftPattern
);
Operations\OperationMapBuilder.cs (2)
86
if (operation.
LeftPattern
is IBinaryPatternOperation nested)
92
Visit(operation.
LeftPattern
, argument);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (4)
68
RemoveIfConstantPatternHasValue(binaryPattern.
LeftPattern
, enumMembers);
71
HandleBinaryPattern(binaryPattern.
LeftPattern
as IBinaryPatternOperation, enumMembers);
98
BinaryOperatorKind.Or => IsDefault(binaryPattern.
LeftPattern
) || IsDefault(binaryPattern.RightPattern),
100
BinaryOperatorKind.And => IsDefault(binaryPattern.
LeftPattern
) && IsDefault(binaryPattern.RightPattern),
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (4)
68
RemoveIfConstantPatternHasValue(binaryPattern.
LeftPattern
, enumMembers);
71
HandleBinaryPattern(binaryPattern.
LeftPattern
as IBinaryPatternOperation, enumMembers);
98
BinaryOperatorKind.Or => IsDefault(binaryPattern.
LeftPattern
) || IsDefault(binaryPattern.RightPattern),
100
BinaryOperatorKind.And => IsDefault(binaryPattern.
LeftPattern
) && IsDefault(binaryPattern.RightPattern),
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
1983
Visit(operation.
LeftPattern
, "LeftPattern");
Compilation\TestOperationVisitor.cs (1)
1392
Assert.Same(operation.
LeftPattern
, children[0]);