58 references to Left
Microsoft.CodeAnalysis.CSharp (58)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (3)
739
return leftWins ? BetterResult.
Left
: BetterResult.Right;
778
return leftWins ? BetterResult.
Left
: BetterResult.Right;
867
if (result != BetterResult.
Left
&& result != BetterResult.Equal)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (14)
1113
if (better == BetterResult.
Left
)
1152
else if (better != BetterResult.
Left
)
1169
if (better != BetterResult.
Left
)
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
)
1213
return BetterResult.
Left
;
1216
if (leftBetter == BetterResult.Right && rightBetter != BetterResult.
Left
||
1217
leftBetter != BetterResult.
Left
&& rightBetter == BetterResult.Right)
1252
if (result == BetterResult.
Left
|| result == BetterResult.Right)
1269
return BetterResult.
Left
;
1278
valOverInPreference = BetterResult.
Left
;
1297
valOverInPreference = BetterResult.
Left
;
1302
if (valOverInPreference == BetterResult.
Left
)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (6)
118
if (better == BetterResult.
Left
)
156
else if (better != BetterResult.
Left
)
173
if (better != BetterResult.
Left
)
190
if (better == BetterResult.
Left
|| better == BetterResult.Right)
224
return BetterResult.
Left
;
231
return BetterResult.
Left
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (35)
1802
else if (better != BetterResult.
Left
)
1824
if (better != BetterResult.
Left
)
1995
if (better == BetterResult.
Left
)
2034
results[i] = BetterResult.
Left
== BetterFunctionMember(results[notBestIdx], results[i], arguments.Arguments, ref useSiteInfo)
2094
return BetterResult.
Left
;
2109
return hasAnyRefOmittedArgument1 ? BetterResult.Right : BetterResult.
Left
;
2264
Debug.Assert(result == BetterResult.
Left
|| result == BetterResult.Right);
2358
return BetterResult.
Left
;
2367
return BetterResult.
Left
;
2383
return BetterResult.
Left
;
2396
return BetterResult.
Left
;
2419
return BetterResult.
Left
;
2436
return BetterResult.
Left
;
2496
return BetterResult.
Left
;
2510
return (m1ModifierCount < m2ModifierCount) ? BetterResult.
Left
: BetterResult.Right;
2637
valOverInOrRefInterpolatedHandlerPreference = BetterResult.
Left
;
2642
if (valOverInOrRefInterpolatedHandlerPreference == BetterResult.
Left
)
2745
return BetterResult.
Left
;
2871
return conv1.Kind == ConversionKind.Identity ? BetterResult.
Left
: BetterResult.Neither;
2930
return BetterResult.
Left
;
2941
return BetterResult.
Left
;
2957
okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.
Left
, lambdaOpt, t1, t2, ref useSiteInfo, false);
2958
return BetterResult.
Left
;
2969
return BetterResult.
Left
;
2988
return BetterResult.
Left
;
3000
return BetterResult.
Left
;
3021
return BetterResult.
Left
;
3069
return BetterResult.
Left
;
3139
return BetterResult.
Left
;
3472
okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.
Left
, lambdaOpt, type1, type2, ref useSiteInfo, true);
3473
return BetterResult.
Left
;
3529
delegateResult = BetterResult.
Left
;
3551
if (delegateResult == BetterResult.
Left
)
3586
return BetterResult.
Left
;
3665
Debug.Assert(currentResult == BetterResult.
Left
);