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