53 references to Right
Microsoft.CodeAnalysis.CSharp (53)
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 (32)
1797if (better == BetterResult.Right) 1991else if (better == BetterResult.Right) 2088return BetterResult.Right; 2101return hasAnyRefOmittedArgument1 ? BetterResult.Right : BetterResult.Left; 2256Debug.Assert(result == BetterResult.Left || result == BetterResult.Right); 2344return BetterResult.Right; 2363return BetterResult.Right; 2380return BetterResult.Right; 2393return BetterResult.Right; 2416return BetterResult.Right; 2433return BetterResult.Right; 2493return BetterResult.Right; 2502return (m1ModifierCount < m2ModifierCount) ? BetterResult.Left : BetterResult.Right; 2623if (valOverInOrRefInterpolatedHandlerPreference == BetterResult.Right) 2640valOverInOrRefInterpolatedHandlerPreference = BetterResult.Right; 2732return BetterResult.Right; 2867return conv2.Kind == ConversionKind.Identity ? BetterResult.Right : BetterResult.Neither; 2924return BetterResult.Right; 2935return BetterResult.Right; 2955okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Right, lambdaOpt, t1, t2, ref useSiteInfo, false); 2956return BetterResult.Right; 2963return BetterResult.Right; 2977return BetterResult.Right; 3004return BetterResult.Right; 3050return BetterResult.Right; 3122return BetterResult.Right; 3457okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Right, lambdaOpt, type1, type2, ref useSiteInfo, true); 3458return BetterResult.Right; 3514delegateResult = BetterResult.Right; 3537else if (delegateResult == BetterResult.Right && IsMethodGroupConversionIncompatibleWithDelegate(group, d2, conv2)) 3570return BetterResult.Right; 3639Debug.Assert(currentResult == BetterResult.Right);