1 implementation of LeftOperand
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5285public IOperation LeftOperand { get; }
96 references to LeftOperand
Microsoft.CodeAnalysis (16)
Operations\ControlFlowGraphBuilder.cs (14)
2154ITypeSymbolHelpers.IsBooleanType(operation.LeftOperand.Type) && 2162ITypeSymbolHelpers.IsNullableOfBoolean(operation.LeftOperand.Type) && 2169ITypeSymbolHelpers.IsObjectType(operation.LeftOperand.Type) && 2175(ITypeSymbolHelpers.IsDynamicType(operation.LeftOperand.Type) || 2193leftOperand = operation.LeftOperand; 2288IOperation left = binOp.LeftOperand; 2395IOperation left = binOp.LeftOperand; 2453IOperation left = binOp.LeftOperand; 2555IOperation left = binOp.LeftOperand; 2657VisitConditionalBranch(condition.LeftOperand, ref lazyFallThrough, stopSense); 2676SyntaxNode leftSyntax = (lazyFallThrough!.GetSingletonPredecessorOrDefault() != null ? condition.LeftOperand : condition).Syntax; 2737ITypeSymbolHelpers.IsBooleanType(binOp.LeftOperand.Type) && 2802stack.Push((skipParenthesized(binOp.LeftOperand), fallThrough, !top.jumpIfTrue)); 2811stack.Push((skipParenthesized(binOp.LeftOperand), top.dest, top.jumpIfTrue));
Operations\OperationMapBuilder.cs (2)
42if (operation.LeftOperand is IBinaryOperation nested) 48Visit(operation.LeftOperand, argument);
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
53var leftOperand = operation.LeftOperand;
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
226if (IsNull(binaryOperator.LeftOperand)) 235binaryOperator.LeftOperand, out localOrParameter);
HashCodeAnalyzer.OperationDeconstructor.cs (3)
65topBinary.LeftOperand is IBinaryOperation leftBinary && 66IsLocalReference(leftBinary.LeftOperand, _hashCodeVariable) && 106TryGetFieldOrProperty(binary.LeftOperand, out _))
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
SyntaxGeneratorExtensions_Negate.cs (1)
390var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
CastSimplifier.cs (3)
769if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 771!IsConstantNull(binaryOperation.LeftOperand) && 779ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.LeftOperand))
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
193!IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
CSharpUsePatternCombinatorsAnalyzer.cs (6)
77var leftPattern = ParsePattern(op.LeftOperand); 90return (op.LeftOperand, op.RightOperand) switch 102ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 108=> new Relational(op.OperatorKind, right, op.LeftOperand), 117ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 120=> new Constant(right, op.LeftOperand),
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (2)
189startOperation, subtraction.LeftOperand); 196IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
ConvertToRecordHelpers.cs (8)
159LeftOperand: IOperation leftOperand, 669AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand, 738=> TryAddEqualizedFieldsForCondition(andOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 745=> TryAddEqualizedFieldsForCondition(orOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 752LeftOperand: IMemberReferenceOperation leftMemberReference, 760LeftOperand: IMemberReferenceOperation leftMemberReference, 804LeftOperand: IOperation leftOperation, 816LeftOperand: IOperation leftOperation,
CSharpUseRangeOperatorCodeFixProvider.cs (1)
224IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
Microsoft.CodeAnalysis.CSharp.Features (18)
ConvertToRecordHelpers.cs (8)
159LeftOperand: IOperation leftOperand, 669AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand, 738=> TryAddEqualizedFieldsForCondition(andOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 745=> TryAddEqualizedFieldsForCondition(orOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 752LeftOperand: IMemberReferenceOperation leftMemberReference, 760LeftOperand: IMemberReferenceOperation leftMemberReference, 804LeftOperand: IOperation leftOperation, 816LeftOperand: IOperation leftOperation,
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
193!IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
CSharpUsePatternCombinatorsAnalyzer.cs (6)
77var leftPattern = ParsePattern(op.LeftOperand); 90return (op.LeftOperand, op.RightOperand) switch 102ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 108=> new Relational(op.OperatorKind, right, op.LeftOperand), 117ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 120=> new Constant(right, op.LeftOperand),
CSharpUseRangeOperatorCodeFixProvider.cs (1)
224IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (2)
189startOperation, subtraction.LeftOperand); 196IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CastSimplifier.cs (3)
769if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 771!IsConstantNull(binaryOperation.LeftOperand) && 779ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.LeftOperand))
Microsoft.CodeAnalysis.Features (20)
AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
53var leftOperand = operation.LeftOperand;
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
226if (IsNull(binaryOperator.LeftOperand)) 235binaryOperator.LeftOperand, out localOrParameter);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (12)
202if (!ParseSwitchLabels(op.LeftOperand, labels)) 248return (op.LeftOperand, op.RightOperand) switch 280ConstantResult.Left when op.LeftOperand.Syntax is TExpressionSyntax left 300var leftPattern = ParsePattern(op.LeftOperand, guards); 343ConstantResult.Left when op.LeftOperand.Syntax is TExpressionSyntax left 370{ LeftOperand: IBinaryOperation left, RightOperand: IBinaryOperation right }) 393LessThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Lower, op.RightOperand, op.LeftOperand), 395LessThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Higher, op.LeftOperand, op.RightOperand), 397GreaterThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Higher, op.RightOperand, op.LeftOperand), 399GreaterThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Lower, op.LeftOperand, op.RightOperand),
HashCodeAnalyzer.OperationDeconstructor.cs (3)
65topBinary.LeftOperand is IBinaryOperation leftBinary && 66IsLocalReference(leftBinary.LeftOperand, _hashCodeVariable) && 106TryGetFieldOrProperty(binary.LeftOperand, out _))
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
222if (IsNullCheck(binaryOperator.LeftOperand, binaryOperator.RightOperand, parameter) || 223IsNullCheck(binaryOperator.RightOperand, binaryOperator.LeftOperand, parameter))
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\ControlFlowGraphVerifier.cs (2)
984if (binOp.LeftOperand == reference && 988(ITypeSymbolHelpers.IsDynamicType(binOp.LeftOperand.Type) || ITypeSymbolHelpers.IsDynamicType(binOp.RightOperand.Type)))))
Compilation\OperationTreeVerifier.cs (1)
1202Visit(operation.LeftOperand, "Left");
Compilation\TestOperationVisitor.cs (1)
772AssertEx.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (4)
155IOperation conditionLeft = condition.LeftOperand; 247advanceOperation.LeftOperand.Kind == OperationKind.LocalReference && 248((ILocalReferenceOperation)advanceOperation.LeftOperand).Local == testVariable && 1609var left = binary.LeftOperand;
Microsoft.CodeAnalysis.Workspaces (1)
SyntaxGeneratorExtensions_Negate.cs (1)
390var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)
IOperation\IOperationTests.vb (2)
69Dim left1 As IOperation = add1.LeftOperand 103Dim left2 As IOperation = add2.LeftOperand