2 writes to RightType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
36this.RightType = rightType; 47this.RightType = rightType;
29 references to RightType
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Operators.cs (7)
187bestSignature.RightType, 193BoundExpression rightConverted = CreateConversion(right, best.RightConversion, bestSignature.RightType, diagnostics); 638Debug.Assert((object)signature.RightType != null); 641resultRight = CreateConversion(right, best.RightConversion, signature.RightType, diagnostics); 957signature.RightType.SpecialType == SpecialType.System_Boolean; 968var resultRight = CreateConversion(right, best.RightConversion, signature.RightType, diagnostics); 1126bool typesAreSame = TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.LeftType, signature.ReturnType, TypeCompareKind.ConsiderEverything2);
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
315Conversion rightConversion = Conversions.FastClassifyConversion(rightType, signature.RightType);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (9)
778var convRight = Conversions.ClassifyConversionFromExpression(right, op.RightType, isChecked: isChecked, ref useSiteInfo); 810equalsIgnoringNullableAndDynamic(op.Signature.RightType, existingSignature.RightType) && 1164BetterResult rightBetter = BetterConversionFromExpression(right, op1.RightType, op2.RightType, ref useSiteInfo); 1204Conversions.HasIdentityConversion(op1.RightType, op2.RightType)) 1307op1Right = op1.RightType; 1324op2Right = op2.RightType;
Binder\Semantics\Operators\BinaryOperatorSignature.cs (4)
56return $"kind: {this.Kind} leftType: {this.LeftType} leftRefKind: {this.LeftRefKind} rightType: {this.RightType} rightRefKind: {this.RightRefKind} return: {this.ReturnType}"; 64TypeSymbol.Equals(this.RightType, other.RightType, TypeCompareKind.ConsiderEverything2) && 88Hash.Combine(RightType,
Compilation\CSharpCompilation.cs (1)
3962csharpRightType.SpecialType == signature.RightType.SpecialType)
Compilation\CSharpSemanticModel.cs (1)
3920compoundAssignment.Operator.RightType,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
24Debug.Assert(TypeSymbol.Equals(node.Right.Type, node.Operator.RightType, TypeCompareKind.ConsiderEverything2));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\OperatorTests.cs (5)
8234TypeSymbol.Equals((signature = compilation.builtInOperators.GetSignature(result)).RightType, leftType.EnumUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything2)) 8236signature = new BinaryOperatorSignature(signature.Kind | BinaryOperatorKind.EnumAndUnderlying, leftType, signature.RightType, leftType); 8364string rightName = signature.RightType.ToTestDisplayString(); 8373if (signature.LeftType.IsObjectType() && signature.RightType.IsStringType()) 8829Assert.Equal(op, new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.ReturnType, op.Method, constrainedToTypeOpt: null));