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