1 implementation of LeftOperand
Microsoft.CodeAnalysis (1)
186 references to LeftOperand
GenerateDocumentationAndConfigFiles (1)
ILLink.RoslynAnalyzer (3)
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)
Microsoft.CodeAnalysis.Analyzers (9)
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
72operation.LeftOperand,
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
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,
Microsoft.CodeAnalysis.CSharp.Features (22)
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,
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
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),
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
72operation.LeftOperand,
Microsoft.CodeAnalysis.NetAnalyzers (57)
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.CodeAnalysis.Workspaces (1)
Roslyn.Diagnostics.Analyzers (1)
Roslyn.Diagnostics.CSharp.Analyzers (3)