18 references to HasValue
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Operators.cs (15)
1844if (bestTrue?.HasValue == true) 1853if (bestTrue?.HasValue != true || bestFalse?.HasValue != true) 1862Debug.Assert(bestTrue is { HasValue: true }); 1863Debug.Assert(bestFalse is { HasValue: true }); 2163Debug.Assert(best.HasValue == (resultKind is LookupResultKind.Viable)); 2166if (!best.HasValue && resultKind != LookupResultKind.Ambiguous) 2207Debug.Assert(possiblyBest.HasValue == (resultKind is LookupResultKind.Viable)); 2237if (possiblyBest.HasValue) 2269resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.Empty; 2272if (possiblyBest is { HasValue: true, Signature: { Method: { } bestMethod } }) 3188Debug.Assert(best.HasValue == (resultKind is LookupResultKind.Viable)); 3191if (!best.HasValue && resultKind != LookupResultKind.Ambiguous) 3221if (!best.HasValue) 4197if (!best.HasValue)
Binder\Binder_Statements.cs (1)
2723if (!best.HasValue)
Binder\Binder_TupleOperators.cs (1)
162if (best.HasValue)
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (1)
85if (this.Best.HasValue)