54 references to Right
Microsoft.CodeAnalysis.CSharp (54)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
744return leftWins ? BetterResult.Left : BetterResult.Right; 783return leftWins ? BetterResult.Left : BetterResult.Right; 844else if (result == BetterResult.Right)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (13)
1122else if (better == BetterResult.Right) 1152if (better == BetterResult.Right) 1190return (op1.Priority.GetValueOrDefault() < op2.Priority.GetValueOrDefault()) ? BetterResult.Left : BetterResult.Right; 1215if (leftBetter == BetterResult.Left && rightBetter != BetterResult.Right || 1216leftBetter != BetterResult.Right && rightBetter == BetterResult.Left) 1221if (leftBetter == BetterResult.Right && rightBetter != BetterResult.Left || 1222leftBetter != BetterResult.Left && rightBetter == BetterResult.Right) 1224return BetterResult.Right; 1257if (result == BetterResult.Left || result == BetterResult.Right) 1270return BetterResult.Right; 1287valOverInPreference = BetterResult.Right; 1296if (valOverInPreference == BetterResult.Right) 1313valOverInPreference = BetterResult.Right;
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (5)
122else if (better == BetterResult.Right) 151if (better == BetterResult.Right) 190if (better == BetterResult.Left || better == BetterResult.Right) 220return BetterResult.Right; 235return BetterResult.Right;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (33)
1797if (better == BetterResult.Right) 1999else if (better == BetterResult.Right) 2096return BetterResult.Right; 2109return hasAnyRefOmittedArgument1 ? BetterResult.Right : BetterResult.Left; 2264Debug.Assert(result == BetterResult.Left || result == BetterResult.Right); 2352return BetterResult.Right; 2371return BetterResult.Right; 2388return BetterResult.Right; 2401return BetterResult.Right; 2424return BetterResult.Right; 2441return BetterResult.Right; 2501return BetterResult.Right; 2510return (m1ModifierCount < m2ModifierCount) ? BetterResult.Left : BetterResult.Right; 2631if (valOverInOrRefInterpolatedHandlerPreference == BetterResult.Right) 2648valOverInOrRefInterpolatedHandlerPreference = BetterResult.Right; 2740return BetterResult.Right; 2875return conv2.Kind == ConversionKind.Identity ? BetterResult.Right : BetterResult.Neither; 2932return BetterResult.Right; 2943return BetterResult.Right; 2963okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Right, lambdaOpt, t1, t2, ref useSiteInfo, false); 2964return BetterResult.Right; 2971return BetterResult.Right; 2993return BetterResult.Right; 2998return BetterResult.Right; 3025return BetterResult.Right; 3071return BetterResult.Right; 3143return BetterResult.Right; 3478okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Right, lambdaOpt, type1, type2, ref useSiteInfo, true); 3479return BetterResult.Right; 3535delegateResult = BetterResult.Right; 3558else if (delegateResult == BetterResult.Right && IsMethodGroupConversionIncompatibleWithDelegate(group, d2, conv2)) 3591return BetterResult.Right; 3660Debug.Assert(currentResult == BetterResult.Right);