2 writes to RightType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
36this.RightType = rightType; 47this.RightType = rightType;
34 references to RightType
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Operators.cs (8)
252bestSignature.RightType, 258BoundExpression rightConverted = CreateConversion(right, best.RightConversion, bestSignature.RightType, diagnostics); 1038Debug.Assert((object)signature.RightType != null); 1047resultRight = CreateConversion(right, best.RightConversion, signature.RightType, conversionDiagnostics); 1458signature.RightType.SpecialType == SpecialType.System_Boolean; 1469var resultRight = CreateConversion(right, best.RightConversion, signature.RightType, diagnostics); 1690bool typesAreSame = TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(signature.LeftType, signature.ReturnType, TypeCompareKind.ConsiderEverything2); 1811if (!TypeSymbol.Equals(signature.LeftType, signature.RightType, TypeCompareKind.AllIgnoreOptions) ||
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
315Conversion rightConversion = Conversions.FastClassifyConversion(rightType, signature.RightType);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (12)
739Debug.Assert(op.RightType.IsObjectType()); 742var convRight = getOperandConversionForAllowByRefLikeNullCheck(isChecked, right, op.RightType, ref useSiteInfo); 814var convRight = Conversions.ClassifyConversionFromExpression(right, op.RightType, isChecked: isChecked, ref useSiteInfo); 846equalsIgnoringNullableAndDynamic(op.Signature.RightType, existingSignature.RightType) && 1225BetterResult rightBetter = BetterConversionFromExpression(right, op1.RightType, op2.RightType, ref useSiteInfo); 1265Conversions.HasIdentityConversion(op1.RightType, op2.RightType)) 1381op1Right = op1.RightType; 1398op2Right = op2.RightType; 1533[TypeWithAnnotations.Create(candidate.LeftType), TypeWithAnnotations.Create(candidate.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,
BoundTree\NullabilityRewriter.cs (1)
152op = new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.ReturnType, GetUpdatedSymbol(node, op.Method), op.ConstrainedToTypeOpt);
Compilation\CSharpCompilation.cs (1)
4324csharpRightType.SpecialType == signature.RightType.SpecialType)
Compilation\CSharpSemanticModel.cs (1)
3944compoundAssignment.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)
8236TypeSymbol.Equals((signature = compilation.BuiltInOperators.GetSignature(result)).RightType, leftType.EnumUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything2)) 8238signature = new BinaryOperatorSignature(signature.Kind | BinaryOperatorKind.EnumAndUnderlying, leftType, signature.RightType, leftType); 8366string rightName = signature.RightType.ToTestDisplayString(); 8375if (signature.LeftType.IsObjectType() && signature.RightType.IsStringType()) 8831Assert.Equal(op, new BinaryOperatorSignature(op.Kind, op.LeftType, op.RightType, op.ReturnType, op.Method, constrainedToTypeOpt: null));