3 instantiations of BestIndex
Microsoft.CodeAnalysis.CSharp (3)
Binder\Semantics\Conversions\BestIndex.cs (3)
23public static BestIndex None() { return new BestIndex(BestIndexKind.None, 0, 0, 0); } 24public static BestIndex HasBest(int best) { return new BestIndex(BestIndexKind.Best, best, 0, 0); } 25public static BestIndex IsAmbiguous(int ambig1, int ambig2) { return new BestIndex(BestIndexKind.Ambiguous, 0, ambig1, ambig2); }
11 references to BestIndex
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Conversions\BestIndex.cs (3)
23public static BestIndex None() { return new BestIndex(BestIndexKind.None, 0, 0, 0); } 24public static BestIndex HasBest(int best) { return new BestIndex(BestIndexKind.Best, best, 0, 0); } 25public static BestIndex IsAmbiguous(int ambig1, int ambig2) { return new BestIndex(BestIndexKind.Ambiguous, 0, ambig1, ambig2); }
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (8)
469BestIndex bestUnlifted = UniqueIndex(u, 498BestIndex bestHalfLifted = UniqueIndex(u, 516BestIndex bestFullyLifted = UniqueIndex(u, 537private static BestIndex UniqueIndex<T>(ImmutableArray<T> items, Func<T, bool> predicate) 541return BestIndex.None(); 556return BestIndex.IsAmbiguous(result.Value, i); 561return result == null ? BestIndex.None() : BestIndex.HasBest(result.Value);