54 references to Right
Microsoft.CodeAnalysis.CSharp (54)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
739return leftWins ? BetterResult.Left : BetterResult.Right; 778return leftWins ? BetterResult.Left : BetterResult.Right; 839else if (result == BetterResult.Right)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (13)
1117else if (better == BetterResult.Right) 1147if (better == BetterResult.Right) 1185return (op1.Priority.GetValueOrDefault() < op2.Priority.GetValueOrDefault()) ? BetterResult.Left : BetterResult.Right; 1210if (leftBetter == BetterResult.Left && rightBetter != BetterResult.Right || 1211leftBetter != BetterResult.Right && rightBetter == BetterResult.Left) 1216if (leftBetter == BetterResult.Right && rightBetter != BetterResult.Left || 1217leftBetter != BetterResult.Left && rightBetter == BetterResult.Right) 1219return BetterResult.Right; 1252if (result == BetterResult.Left || result == BetterResult.Right) 1265return BetterResult.Right; 1282valOverInPreference = BetterResult.Right; 1291if (valOverInPreference == BetterResult.Right) 1308valOverInPreference = 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);