1 implementation of LeftOperand
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5698public IOperation LeftOperand { get; }
186 references to LeftOperand
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
414var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
ILLink.RoslynAnalyzer (3)
DataFlow\FeatureChecksVisitor.cs (2)
112if (GetLiteralBool(operation.LeftOperand) is bool leftBool) 122FeatureChecksValue leftValue = Visit(operation.LeftOperand, state);
TrimAnalysis\TrimAnalysisVisitor.cs (1)
204MultiValue leftValue = Visit(operation.LeftOperand, argument);
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (4)
142return EvaluateBinaryOperator(symbolCache, binaryOperation.LeftOperand, binaryOperation.RightOperand, false) || 143EvaluateBinaryOperator(symbolCache, binaryOperation.RightOperand, binaryOperation.LeftOperand, false); 148return EvaluateBinaryOperator(symbolCache, binaryOperation.LeftOperand, binaryOperation.RightOperand, true) || 149EvaluateBinaryOperator(symbolCache, binaryOperation.RightOperand, binaryOperation.LeftOperand, true);
Microsoft.CodeAnalysis (16)
Operations\ControlFlowGraphBuilder.cs (14)
2181ITypeSymbolHelpers.IsBooleanType(operation.LeftOperand.Type) && 2189ITypeSymbolHelpers.IsNullableOfBoolean(operation.LeftOperand.Type) && 2196ITypeSymbolHelpers.IsObjectType(operation.LeftOperand.Type) && 2202(ITypeSymbolHelpers.IsDynamicType(operation.LeftOperand.Type) || 2220leftOperand = operation.LeftOperand; 2315IOperation left = binOp.LeftOperand; 2422IOperation left = binOp.LeftOperand; 2480IOperation left = binOp.LeftOperand; 2582IOperation left = binOp.LeftOperand; 2684VisitConditionalBranch(condition.LeftOperand, ref lazyFallThrough, stopSense); 2703SyntaxNode leftSyntax = (lazyFallThrough.GetSingletonPredecessorOrDefault() != null ? condition.LeftOperand : condition).Syntax; 2764ITypeSymbolHelpers.IsBooleanType(binOp.LeftOperand.Type) && 2829stack.Push((skipParenthesized(binOp.LeftOperand), fallThrough, !top.jumpIfTrue)); 2838stack.Push((skipParenthesized(binOp.LeftOperand), top.dest, top.jumpIfTrue));
Operations\OperationMapBuilder.cs (2)
43if (operation.LeftOperand is IBinaryOperation nested) 49Visit(operation.LeftOperand, argument);
Microsoft.CodeAnalysis.Analyzers (9)
MetaAnalyzers\CompareSymbolsCorrectlyAnalyzer.cs (4)
141if (binary.LeftOperand.HasNullConstantValue() || binary.RightOperand.HasNullConstantValue()) 146if (!IsSymbolType(binary.LeftOperand, symbolType) 153&& (IsSymbolClassType(binary.LeftOperand) || IsSymbolClassType(binary.RightOperand))) 158if (IsExplicitCastToObject(binary.LeftOperand) || IsExplicitCastToObject(binary.RightOperand))
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (2)
268binaryOperation.LeftOperand.Syntax.WithoutLeadingTrivia(), 276binaryOperation.LeftOperand.Syntax.WithoutLeadingTrivia(),
MetaAnalyzers\PreferIsKindAnalyzer.cs (2)
78var possibleInvocation = operation.LeftOperand.WalkDownConversion(); 93context.ReportDiagnostic(operation.LeftOperand.CreateDiagnostic(Rule));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
414var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\1e7e9f16bf7f1945\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (2)
226var leftValue = Visit(operation.LeftOperand, argument); 228return leftValue.MergeBinaryOperation(rightValue, operation.OperatorKind, operation.LeftOperand.Type, operation.RightOperand.Type, operation.Type);
src\683181b2796de991\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
411MarkValidatedLocations(operation.LeftOperand); 413else if (GetNullAbstractValue(operation.LeftOperand) == NullAbstractValue.Null)
src\a172c07bebba4cd8\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (2)
468HandlePossibleInvalidatingOperation(operation.LeftOperand); 470else if (GetNullAbstractValue(operation.LeftOperand) == NullAbstractValue.Null)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
1856var leftType = operation.LeftOperand.Type; 1857var leftConstantValueOpt = operation.LeftOperand.ConstantValue; 1891return SetValueForEqualsOrNotEqualsComparisonOperator(operation.LeftOperand, operation.RightOperand, equals, isReferenceEquality, targetAnalysisData);
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
56topBinary.LeftOperand is IBinaryOperation leftBinary && 57IsLocalReference(leftBinary.LeftOperand, _hashCodeVariable) && 97TryGetFieldOrProperty(binary.LeftOperand, out _))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
72operation.LeftOperand,
src\roslyn\src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
165if (binaryOperation.LeftOperand.ConstantValue is { HasValue: true, Value: null }) 171yield return binaryOperation.LeftOperand;
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
224if (IsNull(binaryOperator.LeftOperand)) 233binaryOperator.LeftOperand, out localOrParameter);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
414var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
192!IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (4)
188if (!IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand)) 204if (!IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand)) 251startOperation, subtraction.LeftOperand); 258IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (6)
76var leftPattern = ParsePattern(op.LeftOperand); 89return (op.LeftOperand, op.RightOperand) switch 101ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 107=> new Relational(op.OperatorKind, right, op.LeftOperand), 116ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 119=> new Constant(right, op.LeftOperand),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
1068if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 1070!IsConstantNull(binaryOperation.LeftOperand) && 1078ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.LeftOperand))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (8)
159LeftOperand: IOperation leftOperand, 670AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand, 739=> TryAddEqualizedFieldsForCondition(andOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 746=> TryAddEqualizedFieldsForCondition(orOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 753LeftOperand: IMemberReferenceOperation leftMemberReference, 761LeftOperand: IMemberReferenceOperation leftMemberReference, 805LeftOperand: IOperation leftOperation, 817LeftOperand: IOperation leftOperation,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (3)
162IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand)) 176IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand)) 280IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
Microsoft.CodeAnalysis.CSharp.Features (22)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
192!IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (4)
188if (!IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand)) 204if (!IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand)) 251startOperation, subtraction.LeftOperand); 258IsInstanceLengthCheck(memberInfo.LengthLikeProperty, invocation.Instance, subtraction.LeftOperand))
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (6)
76var leftPattern = ParsePattern(op.LeftOperand); 89return (op.LeftOperand, op.RightOperand) switch 101ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 107=> new Relational(op.OperatorKind, right, op.LeftOperand), 116ConstantResult.Left when op.LeftOperand.Syntax is ExpressionSyntax left 119=> new Constant(right, op.LeftOperand),
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (8)
159LeftOperand: IOperation leftOperand, 670AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand, 739=> TryAddEqualizedFieldsForCondition(andOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 746=> TryAddEqualizedFieldsForCondition(orOp.LeftOperand, successRequirement, currentObject, otherObject, builder) && 753LeftOperand: IMemberReferenceOperation leftMemberReference, 761LeftOperand: IMemberReferenceOperation leftMemberReference, 805LeftOperand: IOperation leftOperation, 817LeftOperand: IOperation leftOperation,
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (3)
162IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand)) 176IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand)) 280IsInstanceLengthCheck(lengthLikeProperty, instance, subtraction.LeftOperand))
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
1068if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 1070!IsConstantNull(binaryOperation.LeftOperand) && 1078ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.LeftOperand))
Microsoft.CodeAnalysis.Features (23)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (12)
211if (!ParseSwitchLabels(op.LeftOperand, labels)) 257return (op.LeftOperand, op.RightOperand) switch 289ConstantResult.Left when op.LeftOperand.Syntax is TExpressionSyntax left 309var leftPattern = ParsePattern(op.LeftOperand, guards); 352ConstantResult.Left when op.LeftOperand.Syntax is TExpressionSyntax left 379{ LeftOperand: IBinaryOperation left, RightOperand: IBinaryOperation right }) 402LessThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Lower, op.RightOperand, op.LeftOperand), 404LessThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Higher, op.LeftOperand, op.RightOperand), 406GreaterThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Higher, op.RightOperand, op.LeftOperand), 408GreaterThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Lower, op.LeftOperand, op.RightOperand),
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
270if (IsNullCheck(binaryOperator.LeftOperand, binaryOperator.RightOperand, parameter) || 271IsNullCheck(binaryOperator.RightOperand, binaryOperator.LeftOperand, parameter)) 308IsNumericCheckOperands(binaryOperator.LeftOperand, binaryOperator.RightOperand, parameter))
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
56topBinary.LeftOperand is IBinaryOperation leftBinary && 57IsLocalReference(leftBinary.LeftOperand, _hashCodeVariable) && 97TryGetFieldOrProperty(binary.LeftOperand, out _))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
72operation.LeftOperand,
src\roslyn\src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
165if (binaryOperation.LeftOperand.ConstantValue is { HasValue: true, Value: null }) 171yield return binaryOperation.LeftOperand;
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
224if (IsNull(binaryOperator.LeftOperand)) 233binaryOperator.LeftOperand, out localOrParameter);
Microsoft.CodeAnalysis.NetAnalyzers (57)
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidDeadConditionalCode.cs (1)
132(binaryOperation.LeftOperand is not IBinaryOperation leftBinary || GetPredicateKind(leftBinary) == PredicateValueKind.Unknown) &&
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.cs (2)
97=> OperationHasSideEffects(binaryOperation.LeftOperand) || OperationHasSideEffects(binaryOperation.RightOperand), 138AddExpressionPartToSet(binaryOperation.LeftOperand, isNegated, set);
Microsoft.NetCore.Analyzers\Performance\AvoidPotentiallyExpensiveCallWhenLogging.cs (1)
167return GetExpenseReason(binaryOperation.LeftOperand) ??
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (2)
295if (bAnd.LeftOperand == operation && !FindUsages(bAnd.RightOperand, ref usageContext, searchContext)) 305if (bOr.LeftOperand == operation && !FindUsages(bOr.RightOperand, ref usageContext, searchContext))
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Analyzer.cs (1)
308if (TryGetInvocationWithoutParentheses(binaryOperation.LeftOperand, out IInvocationOperation? leftInvocation))
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Fixer.cs (3)
126binaryOperation.LeftOperand != null && binaryOperation.RightOperand != null) 188SyntaxNode leftNode = binaryOperation.LeftOperand is IInvocationOperation leftInvocation ? 190binaryOperation.LeftOperand.Syntax;
Microsoft.NetCore.Analyzers\Performance\UseCountProperly.cs (1)
613if (!TryGetZeroOrOneConstant(binaryOperation.LeftOperand, out int constant))
Microsoft.NetCore.Analyzers\Performance\UseStartsWithInsteadOfIndexOfComparisonWithZero.cs (2)
104if (IsIndexOfComparedWithZero(binaryOperation.LeftOperand, binaryOperation.RightOperand, indexOfMethods, out var additionalLocations, out var properties) || 105IsIndexOfComparedWithZero(binaryOperation.RightOperand, binaryOperation.LeftOperand, indexOfMethods, out additionalLocations, out properties))
Microsoft.NetCore.Analyzers\Runtime\AvoidRedundantRegexIsMatchBeforeMatch.cs (1)
419return FindMatchInExpression(binary.LeftOperand, isMatchInvocation, regexType)
Microsoft.NetCore.Analyzers\Runtime\LoggerMessageDefineAnalyzer.cs (1)
259var leftText = TryGetFormatText(binary.LeftOperand);
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOf.Fixer.cs (2)
46if (binaryOperation.LeftOperand is IInvocationOperation invocationOperationOperand) 54otherOperation = binaryOperation.LeftOperand;
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOfAnalyzer.cs (4)
133var otherOperand = binaryOperation.LeftOperand is ILocalReferenceOperation ? binaryOperation.RightOperand : binaryOperation.LeftOperand; 155var otherOperand = binaryOperation.LeftOperand is IInvocationOperation ? binaryOperation.RightOperand : binaryOperation.LeftOperand;
Microsoft.NetCore.Analyzers\Runtime\PreventNumericIntPtrUIntPtrBehavioralChanges.cs (3)
83if ((binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_IntPtr || 84binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_UIntPtr) && 86!IsAliasUsed(GetSymbol(binaryOperation.LeftOperand)))
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.cs (2)
108if (binaryOperation.LeftOperand.Type?.SpecialType != SpecialType.System_String || 114if (!IsEmptyString(binaryOperation.LeftOperand)
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectly.cs (1)
60if (IsNan(binaryOperatorExpression.LeftOperand) || IsNan(binaryOperatorExpression.RightOperand))
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpers.cs (13)
381parameterReference = equalsOp.LeftOperand.WalkDownConversion() as IParameterReferenceOperation; 383else if (equalsOp.LeftOperand.HasNullConstantValue()) 408IsParameterNullCheck(orOp.LeftOperand, out IParameterReferenceOperation? nullCheckParameter) && 414if (IsArgLengthEqual0(stringLength, nullCheckParameter.Parameter, lengthCheckOperation.LeftOperand, lengthCheckOperation.RightOperand) || 415IsArgLengthEqual0(stringLength, nullCheckParameter.Parameter, lengthCheckOperation.RightOperand, lengthCheckOperation.LeftOperand)) 422if (IsArgEqualStringEmpty(stringEmpty, nullCheckParameter.Parameter, lengthCheckOperation.LeftOperand, lengthCheckOperation.RightOperand) || 423IsArgEqualStringEmpty(stringEmpty, nullCheckParameter.Parameter, lengthCheckOperation.RightOperand, lengthCheckOperation.LeftOperand)) 476if (binaryOperation.LeftOperand.WalkDownConversion() is ILiteralOperation { ConstantValue: { HasValue: true, Value: 0 } }) 488parameterReferenceOperation = binaryOperation.LeftOperand as IParameterReferenceOperation; 495if (binaryOperation.LeftOperand is IParameterReferenceOperation leftOperandParameterReference && 509binaryOperation.LeftOperand.WalkDownConversion() is ILiteralOperation { ConstantValue: { HasValue: true, Value: 0 } }) 542if (binaryOperation.LeftOperand is IParameterReferenceOperation leftParameter) 581other = binaryOperation.LeftOperand.Syntax;
Microsoft.NetCore.Analyzers\Runtime\UseSpanBasedStringConcat.cs (1)
144Visit(operation.LeftOperand);
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.cs (2)
186if (IsLiteralZero(binaryOperation.LeftOperand)) 189return binaryOperation.LeftOperand as IInvocationOperation;
Microsoft.NetCore.Analyzers\Usage\DoNotCompareSpanToNull.cs (5)
61var leftOperand = binaryOperation.LeftOperand.WalkDownConversion(); 63if (rightOperand.HasNullConstantValue() && binaryOperation.LeftOperand.Type is not null && IsSpan(binaryOperation.LeftOperand.Type) 69if (rightOperand is IDefaultValueOperation && binaryOperation.LeftOperand.Type is not null && IsSpan(binaryOperation.LeftOperand.Type)
src\440320f3f10733a8\ValueContentAnalysis.ValueContentDataFlowOperationVisitor.cs (2)
225var leftValue = Visit(operation.LeftOperand, argument); 227return leftValue.MergeBinaryOperation(rightValue, operation.OperatorKind, operation.LeftOperand.Type, operation.RightOperand.Type, operation.Type);
src\47c588c5b8785708\ParameterValidationAnalysis.ParameterValidationDataFlowOperationVisitor.cs (2)
409MarkValidatedLocations(operation.LeftOperand); 411else if (GetNullAbstractValue(operation.LeftOperand) == NullAbstractValue.Null)
src\afc74d572e54ec72\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (2)
465HandlePossibleInvalidatingOperation(operation.LeftOperand); 467else if (GetNullAbstractValue(operation.LeftOperand) == NullAbstractValue.Null)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (3)
1853var leftType = operation.LeftOperand.Type; 1854var leftConstantValueOpt = operation.LeftOperand.ConstantValue; 1888return SetValueForEqualsOrNotEqualsComparisonOperator(operation.LeftOperand, operation.RightOperand, equals, isReferenceEquality, targetAnalysisData);
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
414var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
414var leftOperand = RemoveImplicitConversion(binaryOperation.LeftOperand);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
1068if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 1070!IsConstantNull(binaryOperation.LeftOperand) && 1078ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.LeftOperand))