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