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)
1812if (better == BetterResult.Right) 2014else if (better == BetterResult.Right) 2124return BetterResult.Right; 2137return hasAnyRefOmittedArgument1 ? BetterResult.Right : BetterResult.Left; 2292Debug.Assert(result == BetterResult.Left || result == BetterResult.Right); 2380return BetterResult.Right; 2399return BetterResult.Right; 2416return BetterResult.Right; 2429return BetterResult.Right; 2452return BetterResult.Right; 2469return BetterResult.Right; 2529return BetterResult.Right; 2538return (m1ModifierCount < m2ModifierCount) ? BetterResult.Left : BetterResult.Right; 2661if (valOverInOrRefInterpolatedHandlerPreference == BetterResult.Right) 2678valOverInOrRefInterpolatedHandlerPreference = BetterResult.Right; 2771return BetterResult.Right; 2906return conv2.Kind == ConversionKind.Identity ? BetterResult.Right : BetterResult.Neither; 2963return BetterResult.Right; 2974return BetterResult.Right; 2994okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Right, lambdaOpt, t1, t2, ref useSiteInfo, false); 2995return BetterResult.Right; 3002return BetterResult.Right; 3016return BetterResult.Right; 3043return BetterResult.Right; 3089return BetterResult.Right; 3161return BetterResult.Right; 3484return BetterResult.Right; 3517okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Right, lambdaOpt, type1, type2, ref useSiteInfo, true); 3518return BetterResult.Right; 3574delegateResult = BetterResult.Right; 3597else if (delegateResult == BetterResult.Right && IsMethodGroupConversionIncompatibleWithDelegate(group, d2, conv2)) 3630return BetterResult.Right; 3715Debug.Assert(currentResult == BetterResult.Right);