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)
474BestIndex bestUnlifted = UniqueIndex(u, 503BestIndex bestHalfLifted = UniqueIndex(u, 521BestIndex bestFullyLifted = UniqueIndex(u, 542private static BestIndex UniqueIndex<T>(ImmutableArray<T> items, Func<T, bool> predicate) 546return BestIndex.None(); 561return BestIndex.IsAmbiguous(result.Value, i); 566return result == null ? BestIndex.None() : BestIndex.HasBest(result.Value);