1 implementation of RightOperand
Microsoft.CodeAnalysis (1)
112 references to RightOperand
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)
2172ITypeSymbolHelpers.IsBooleanType(operation.RightOperand.Type))
2180ITypeSymbolHelpers.IsNullableOfBoolean(operation.RightOperand.Type))
2187ITypeSymbolHelpers.IsObjectType(operation.RightOperand.Type))
2193ITypeSymbolHelpers.IsDynamicType(operation.RightOperand.Type)))
2228IOperation rightOperand = VisitRequired(operation.RightOperand);
2306IOperation right = binOp.RightOperand;
2413IOperation right = binOp.RightOperand;
2471IOperation right = binOp.RightOperand;
2573IOperation right = binOp.RightOperand;
2679IOperation resultFromRight = VisitConditionalExpression(condition.RightOperand, sense, captureId, fallToTrueOpt, fallToFalseOpt);
2681CaptureResultIfNotAlready(condition.RightOperand.Syntax, captureId, resultFromRight);
2755ITypeSymbolHelpers.IsBooleanType(binOp.RightOperand.Type);
2818stack.Push((skipParenthesized(binOp.RightOperand), top.dest, top.jumpIfTrue));
2827stack.Push((skipParenthesized(binOp.RightOperand), top.dest, top.jumpIfTrue));
Microsoft.CodeAnalysis.CodeStyle (6)
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 (8)
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\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 (21)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (13)
214operation = op.RightOperand;
255return (op.LeftOperand, op.RightOperand) switch
289ConstantResult.Right when op.RightOperand.Syntax is TExpressionSyntax right
314var rightPattern = ParsePattern(op.RightOperand, guards);
322if (Supports(Feature.CaseGuard) && op.RightOperand.Syntax is TExpressionSyntax node)
352ConstantResult.Right when op.RightOperand.Syntax is TExpressionSyntax right
377{ LeftOperand: IBinaryOperation left, RightOperand: IBinaryOperation right })
400LessThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Lower, op.RightOperand, op.LeftOperand),
402LessThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Higher, op.LeftOperand, op.RightOperand),
404GreaterThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Higher, op.RightOperand, op.LeftOperand),
406GreaterThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Lower, op.LeftOperand, op.RightOperand),
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
73operation.RightOperand,
Microsoft.CodeAnalysis.Test.Utilities (12)
Microsoft.CodeAnalysis.Workspaces (1)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)