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