1 implementation of RightOperand
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5286public IOperation RightOperand { get; }
100 references to RightOperand
Microsoft.CodeAnalysis (15)
Operations\ControlFlowGraphBuilder.cs (14)
2155ITypeSymbolHelpers.IsBooleanType(operation.RightOperand.Type)) 2163ITypeSymbolHelpers.IsNullableOfBoolean(operation.RightOperand.Type)) 2170ITypeSymbolHelpers.IsObjectType(operation.RightOperand.Type)) 2176ITypeSymbolHelpers.IsDynamicType(operation.RightOperand.Type))) 2211IOperation rightOperand = VisitRequired(operation.RightOperand); 2289IOperation right = binOp.RightOperand; 2396IOperation right = binOp.RightOperand; 2454IOperation right = binOp.RightOperand; 2556IOperation right = binOp.RightOperand; 2662IOperation resultFromRight = VisitConditionalExpression(condition.RightOperand, sense, captureId, fallToTrueOpt, fallToFalseOpt); 2664CaptureResultIfNotAlready(condition.RightOperand.Syntax, captureId, resultFromRight); 2738ITypeSymbolHelpers.IsBooleanType(binOp.RightOperand.Type); 2801stack.Push((skipParenthesized(binOp.RightOperand), top.dest, top.jumpIfTrue)); 2810stack.Push((skipParenthesized(binOp.RightOperand), top.dest, top.jumpIfTrue));
Operations\OperationMapBuilder.cs (1)
41Visit(operation.RightOperand, argument);
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
52var rightOperand = operation.RightOperand;
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
229binaryOperator.RightOperand, out localOrParameter); 232if (IsNull(binaryOperator.RightOperand))
HashCodeAnalyzer.OperationDeconstructor.cs (3)
67IsLiteralNumber(leftBinary.RightOperand) && 68TryAddHashedSymbol(topBinary.RightOperand, seenHash: true); 105Unwrap(binary.RightOperand).IsNullLiteral() &&
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
SyntaxGeneratorExtensions_Negate.cs (1)
389var rightOperand = RemoveImplicitConversion(binaryOperation.RightOperand);
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
CastSimplifier.cs (3)
772ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.RightOperand)) 776else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object && 778!IsConstantNull(binaryOperation.RightOperand) &&
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
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (3)
183if (CSharpSyntaxFacts.Instance.AreEquivalent(startOperation.Syntax, subtraction.RightOperand.Syntax)) 195IsConstantInt32(subtraction.RightOperand) && 202startOperation, subtraction.RightOperand);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
ConvertToRecordHelpers.cs (8)
160RightOperand: IOperation rightOperand, 669AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand, 739TryAddEqualizedFieldsForCondition(andOp.RightOperand, successRequirement, currentObject, otherObject, builder), 746TryAddEqualizedFieldsForCondition(orOp.RightOperand, successRequirement, currentObject, otherObject, builder), 753RightOperand: IMemberReferenceOperation rightMemberReference, 761RightOperand: IMemberReferenceOperation rightMemberReference, 805RightOperand: IOperation rightOperation, 817RightOperand: IOperation rightOperation,
CSharpUseRangeOperatorCodeFixProvider.cs (1)
226rangeOperation = subtraction.RightOperand;
Microsoft.CodeAnalysis.CSharp.Features (18)
ConvertToRecordHelpers.cs (8)
160RightOperand: IOperation rightOperand, 669AreConditionsSatisfiedEitherOrder(binOp.LeftOperand, binOp.RightOperand, 739TryAddEqualizedFieldsForCondition(andOp.RightOperand, successRequirement, currentObject, otherObject, builder), 746TryAddEqualizedFieldsForCondition(orOp.RightOperand, successRequirement, currentObject, otherObject, builder), 753RightOperand: IMemberReferenceOperation rightMemberReference, 761RightOperand: IMemberReferenceOperation rightMemberReference, 805RightOperand: IOperation rightOperation, 817RightOperand: IOperation rightOperation,
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
CSharpUseRangeOperatorCodeFixProvider.cs (1)
226rangeOperation = subtraction.RightOperand;
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (3)
183if (CSharpSyntaxFacts.Instance.AreEquivalent(startOperation.Syntax, subtraction.RightOperand.Syntax)) 195IsConstantInt32(subtraction.RightOperand) && 202startOperation, subtraction.RightOperand);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CastSimplifier.cs (3)
772ConvertedHasUserDefinedEquals(binaryOperation.OperatorKind, binaryOperation.RightOperand)) 776else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object && 778!IsConstantNull(binaryOperation.RightOperand) &&
Microsoft.CodeAnalysis.Features (21)
AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (1)
52var rightOperand = operation.RightOperand;
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
229binaryOperator.RightOperand, out localOrParameter); 232if (IsNull(binaryOperator.RightOperand))
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (13)
207operation = op.RightOperand; 248return (op.LeftOperand, op.RightOperand) switch 282ConstantResult.Right when op.RightOperand.Syntax is TExpressionSyntax right 307var rightPattern = ParsePattern(op.RightOperand, guards); 315if (Supports(Feature.CaseGuard) && op.RightOperand.Syntax is TExpressionSyntax node) 345ConstantResult.Right when op.RightOperand.Syntax is TExpressionSyntax right 370{ LeftOperand: IBinaryOperation left, RightOperand: IBinaryOperation right }) 393LessThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Lower, op.RightOperand, op.LeftOperand), 395LessThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Higher, op.LeftOperand, op.RightOperand), 397GreaterThanOrEqual when IsConstant(op.LeftOperand) => (BoundKind.Higher, op.RightOperand, op.LeftOperand), 399GreaterThanOrEqual when IsConstant(op.RightOperand) => (BoundKind.Lower, op.LeftOperand, op.RightOperand),
HashCodeAnalyzer.OperationDeconstructor.cs (3)
67IsLiteralNumber(leftBinary.RightOperand) && 68TryAddHashedSymbol(topBinary.RightOperand, seenHash: true); 105Unwrap(binary.RightOperand).IsNullLiteral() &&
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
222if (IsNullCheck(binaryOperator.LeftOperand, binaryOperator.RightOperand, parameter) || 223IsNullCheck(binaryOperator.RightOperand, binaryOperator.LeftOperand, parameter))
Microsoft.CodeAnalysis.Test.Utilities (12)
Compilation\ControlFlowGraphVerifier.cs (5)
988(ITypeSymbolHelpers.IsDynamicType(binOp.LeftOperand.Type) || ITypeSymbolHelpers.IsDynamicType(binOp.RightOperand.Type))))) 995binOpSyntax.Right == applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)binOp.RightOperand.Syntax)) 1006binOpSyntax.Right == applyParenthesizedIfAnyVB((VisualBasicSyntaxNode)binOp.RightOperand.Syntax)) 1013range.UpperBound == applyParenthesizedIfAnyVB((VisualBasicSyntaxNode)binOp.RightOperand.Syntax)) 1021caseStmt.Cases.Contains(applyParenthesizedIfAnyVB((VisualBasicSyntaxNode)binOp.RightOperand.Syntax) as CaseClauseSyntax))
Compilation\OperationTreeVerifier.cs (1)
1203Visit(operation.RightOperand, "Right");
Compilation\TestOperationVisitor.cs (1)
772AssertEx.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)
SyntaxGeneratorExtensions_Negate.cs (1)
389var 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