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