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)
479BestIndex bestUnlifted = UniqueIndex(u, 508BestIndex bestHalfLifted = UniqueIndex(u, 526BestIndex bestFullyLifted = UniqueIndex(u, 547private static BestIndex UniqueIndex<T>(ImmutableArray<T> items, Func<T, bool> predicate) 551return BestIndex.None(); 566return BestIndex.IsAmbiguous(result.Value, i); 571return result == null ? BestIndex.None() : BestIndex.HasBest(result.Value);