57 references to Left
Microsoft.CodeAnalysis.CSharp (57)
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 (34)
1802else if (better != BetterResult.Left) 1824if (better != BetterResult.Left) 1987if (better == BetterResult.Left) 2026results[i] = BetterResult.Left == BetterFunctionMember(results[notBestIdx], results[i], arguments.Arguments, ref useSiteInfo) 2086return BetterResult.Left; 2101return hasAnyRefOmittedArgument1 ? BetterResult.Right : BetterResult.Left; 2256Debug.Assert(result == BetterResult.Left || result == BetterResult.Right); 2350return BetterResult.Left; 2359return BetterResult.Left; 2375return BetterResult.Left; 2388return BetterResult.Left; 2411return BetterResult.Left; 2428return BetterResult.Left; 2488return BetterResult.Left; 2502return (m1ModifierCount < m2ModifierCount) ? BetterResult.Left : BetterResult.Right; 2629valOverInOrRefInterpolatedHandlerPreference = BetterResult.Left; 2634if (valOverInOrRefInterpolatedHandlerPreference == BetterResult.Left) 2737return BetterResult.Left; 2863return conv1.Kind == ConversionKind.Identity ? BetterResult.Left : BetterResult.Neither; 2922return BetterResult.Left; 2933return BetterResult.Left; 2949okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Left, lambdaOpt, t1, t2, ref useSiteInfo, false); 2950return BetterResult.Left; 2961return BetterResult.Left; 2979return BetterResult.Left; 3000return BetterResult.Left; 3048return BetterResult.Left; 3118return BetterResult.Left; 3451okToDowngradeToNeither = lambdaOpt != null && CanDowngradeConversionFromLambdaToNeither(BetterResult.Left, lambdaOpt, type1, type2, ref useSiteInfo, true); 3452return BetterResult.Left; 3508delegateResult = BetterResult.Left; 3530if (delegateResult == BetterResult.Left) 3565return BetterResult.Left; 3644Debug.Assert(currentResult == BetterResult.Left);