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