1 implementation of RightOperand
Microsoft.CodeAnalysis (1)
180 references to RightOperand
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 (15)
Operations\ControlFlowGraphBuilder.cs (14)
2182ITypeSymbolHelpers.IsBooleanType(operation.RightOperand.Type))
2190ITypeSymbolHelpers.IsNullableOfBoolean(operation.RightOperand.Type))
2197ITypeSymbolHelpers.IsObjectType(operation.RightOperand.Type))
2203ITypeSymbolHelpers.IsDynamicType(operation.RightOperand.Type)))
2238IOperation rightOperand = VisitRequired(operation.RightOperand);
2316IOperation right = binOp.RightOperand;
2423IOperation right = binOp.RightOperand;
2481IOperation right = binOp.RightOperand;
2583IOperation right = binOp.RightOperand;
2689IOperation resultFromRight = VisitConditionalExpression(condition.RightOperand, sense, captureId, fallToTrueOpt, fallToFalseOpt);
2691CaptureResultIfNotAlready(condition.RightOperand.Syntax, captureId, resultFromRight);
2765ITypeSymbolHelpers.IsBooleanType(binOp.RightOperand.Type);
2828stack.Push((skipParenthesized(binOp.RightOperand), top.dest, top.jumpIfTrue));
2837stack.Push((skipParenthesized(binOp.RightOperand), top.dest, top.jumpIfTrue));
Microsoft.CodeAnalysis.Analyzers (7)
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
73operation.RightOperand,
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)
160RightOperand: IOperation rightOperand,
670AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand,
740TryAddEqualizedFieldsForCondition(andOp.RightOperand, successRequirement, currentObject, otherObject, builder),
747TryAddEqualizedFieldsForCondition(orOp.RightOperand, successRequirement, currentObject, otherObject, builder),
754RightOperand: IMemberReferenceOperation rightMemberReference,
762RightOperand: IMemberReferenceOperation rightMemberReference,
806RightOperand: IOperation rightOperation,
818RightOperand: IOperation rightOperation,
Microsoft.CodeAnalysis.CSharp.Features (22)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (8)
160RightOperand: IOperation rightOperand,
670AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand,
740TryAddEqualizedFieldsForCondition(andOp.RightOperand, successRequirement, currentObject, otherObject, builder),
747TryAddEqualizedFieldsForCondition(orOp.RightOperand, successRequirement, currentObject, otherObject, builder),
754RightOperand: IMemberReferenceOperation rightMemberReference,
762RightOperand: IMemberReferenceOperation rightMemberReference,
806RightOperand: IOperation rightOperation,
818RightOperand: IOperation rightOperation,
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.Features (24)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (13)
216operation = op.RightOperand;
257return (op.LeftOperand, op.RightOperand) switch
291ConstantResult.Right when op.RightOperand.Syntax is TExpressionSyntax right
316var rightPattern = ParsePattern(op.RightOperand, guards);
324if (Supports(Feature.CaseGuard) && op.RightOperand.Syntax is TExpressionSyntax node)
354ConstantResult.Right when op.RightOperand.Syntax is TExpressionSyntax right
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)
73operation.RightOperand,
Microsoft.CodeAnalysis.NetAnalyzers (53)
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpers.cs (13)
378if (equalsOp.RightOperand.HasNullConstantValue())
386parameterReference = equalsOp.RightOperand.WalkDownConversion() as IParameterReferenceOperation;
409orOp.RightOperand is IBinaryOperation { OperatorKind: BinaryOperatorKind.Equals } lengthCheckOperation)
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))
480parameterReferenceOperation = binaryOperation.RightOperand as IParameterReferenceOperation;
484if (binaryOperation.RightOperand.WalkDownConversion() is ILiteralOperation { ConstantValue: { HasValue: true, Value: 0 } })
496binaryOperation.RightOperand.WalkDownConversion() is ILiteralOperation { ConstantValue: { HasValue: true, Value: 0 } })
508if (binaryOperation.RightOperand is IParameterReferenceOperation rightOperationParameterReference &&
559other = binaryOperation.RightOperand.Syntax;
564if (binaryOperation.RightOperand is IParameterReferenceOperation rightParameter)
Microsoft.CodeAnalysis.Workspaces (1)
Roslyn.Diagnostics.Analyzers (1)
Roslyn.Diagnostics.CSharp.Analyzers (3)