1 implementation of RightOperand
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5659public IOperation RightOperand { get; }
112 references to RightOperand
ILLink.RoslynAnalyzer (3)
DataFlow\FeatureChecksVisitor.cs (2)
111 FeatureChecksValue rightValue = Visit (operation.RightOperand, state); 117 if (GetLiteralBool (operation.RightOperand) is bool rightBool) {
TrimAnalysis\TrimAnalysisVisitor.cs (1)
190 MultiValue rightValue = Visit (operation.RightOperand, 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 (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));
Operations\OperationMapBuilder.cs (1)
42Visit(operation.RightOperand, argument);
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
58IsLiteralNumber(leftBinary.RightOperand) && 59TryAddHashedSymbol(topBinary.RightOperand, seenHash: true); 96Unwrap(binary.RightOperand).IsNullLiteral() &&
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
73operation.RightOperand,
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
228binaryOperator.RightOperand, out localOrParameter); 231if (IsNull(binaryOperator.RightOperand))
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
417var rightOperand = RemoveImplicitConversion(binaryOperation.RightOperand);
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (5)
192if (!CSharpSyntaxFacts.Instance.AreEquivalent(lengthOperation.Syntax, subtraction.RightOperand.Syntax)) 208if (!CSharpSyntaxFacts.Instance.AreEquivalent(startOperation.Syntax, subtraction.RightOperand.Syntax)) 246if (CSharpSyntaxFacts.Instance.AreEquivalent(startOperation.Syntax, subtraction.RightOperand.Syntax)) 258IsConstantInt32(subtraction.RightOperand) && 265startOperation, subtraction.RightOperand);
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (6)
81var rightPattern = ParsePattern(op.RightOperand); 90return (op.LeftOperand, op.RightOperand) switch 106=> new Relational(Flip(op.OperatorKind), left, op.RightOperand), 107ConstantResult.Right when op.RightOperand.Syntax is ExpressionSyntax right 118=> new Constant(left, op.RightOperand), 119ConstantResult.Right when op.RightOperand.Syntax is ExpressionSyntax right
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
919ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.RightOperand)) 923else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object && 925!IsConstantNull(binaryOperation.RightOperand) &&
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\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (5)
192if (!CSharpSyntaxFacts.Instance.AreEquivalent(lengthOperation.Syntax, subtraction.RightOperand.Syntax)) 208if (!CSharpSyntaxFacts.Instance.AreEquivalent(startOperation.Syntax, subtraction.RightOperand.Syntax)) 246if (CSharpSyntaxFacts.Instance.AreEquivalent(startOperation.Syntax, subtraction.RightOperand.Syntax)) 258IsConstantInt32(subtraction.RightOperand) && 265startOperation, subtraction.RightOperand);
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (6)
81var rightPattern = ParsePattern(op.RightOperand); 90return (op.LeftOperand, op.RightOperand) switch 106=> new Relational(Flip(op.OperatorKind), left, op.RightOperand), 107ConstantResult.Right when op.RightOperand.Syntax is ExpressionSyntax right 118=> new Constant(left, op.RightOperand), 119ConstantResult.Right when op.RightOperand.Syntax is ExpressionSyntax right
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,
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (3)
160return (startExpr: null, startFromEnd: false, (ExpressionSyntax)subtraction.RightOperand.Syntax, endFromEnd: true); 174return ((ExpressionSyntax)subtraction.RightOperand.Syntax, startFromEnd: true, endExpr: null, endFromEnd: false); 277rangeOperation = subtraction.RightOperand;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
919ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.RightOperand)) 923else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object && 925!IsConstantNull(binaryOperation.RightOperand) &&
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),
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
221if (IsNullCheck(binaryOperator.LeftOperand, binaryOperator.RightOperand, parameter) || 222IsNullCheck(binaryOperator.RightOperand, binaryOperator.LeftOperand, parameter))
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (3)
58IsLiteralNumber(leftBinary.RightOperand) && 59TryAddHashedSymbol(topBinary.RightOperand, seenHash: true); 96Unwrap(binary.RightOperand).IsNullLiteral() &&
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
73operation.RightOperand,
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
228binaryOperator.RightOperand, out localOrParameter); 231if (IsNull(binaryOperator.RightOperand))
Microsoft.CodeAnalysis.Test.Utilities (12)
Compilation\ControlFlowGraphVerifier.cs (5)
950(ITypeSymbolHelpers.IsDynamicType(binOp.LeftOperand.Type) || ITypeSymbolHelpers.IsDynamicType(binOp.RightOperand.Type))))) 957binOpSyntax.Right == applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)binOp.RightOperand.Syntax)) 968binOpSyntax.Right == applyParenthesizedIfAnyVB((VisualBasicSyntaxNode)binOp.RightOperand.Syntax)) 975range.UpperBound == applyParenthesizedIfAnyVB((VisualBasicSyntaxNode)binOp.RightOperand.Syntax)) 983caseStmt.Cases.Contains(applyParenthesizedIfAnyVB((VisualBasicSyntaxNode)binOp.RightOperand.Syntax) as CaseClauseSyntax))
Compilation\OperationTreeVerifier.cs (1)
1212Visit(operation.RightOperand, "Right");
Compilation\TestOperationVisitor.cs (1)
790AssertEx.Equal(new[] { operation.LeftOperand, operation.RightOperand }, operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (5)
156IOperation conditionRight = condition.RightOperand; 249advanceOperation.RightOperand.ConstantValue.HasValue && 250advanceOperation.RightOperand.Type.SpecialType == SpecialType.System_Int32) 253advanceIncrementOpt = advanceOperation.RightOperand.ConstantValue; 1610var right = binary.RightOperand;
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
417var rightOperand = RemoveImplicitConversion(binaryOperation.RightOperand);
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (2)
IOperation\IOperationTests.vb (2)
72Dim right1 As IOperation = add1.RightOperand 106Dim right2 As IOperation = add2.RightOperand