18 references to HasValue
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Operators.cs (15)
1855if (bestTrue?.HasValue == true) 1871if (bestTrue?.HasValue != true || bestFalse?.HasValue != true) 1880Debug.Assert(bestTrue is { HasValue: true }); 1881Debug.Assert(bestFalse is { HasValue: true }); 2183Debug.Assert(best.HasValue == (resultKind is LookupResultKind.Viable)); 2186if (!best.HasValue && resultKind != LookupResultKind.Ambiguous) 2227Debug.Assert(possiblyBest.HasValue == (resultKind is LookupResultKind.Viable)); 2257if (possiblyBest.HasValue) 2289resultKind = possiblyBest.HasValue ? LookupResultKind.Viable : LookupResultKind.Empty; 2292if (possiblyBest is { HasValue: true, Signature: { Method: { } bestMethod } }) 3210Debug.Assert(best.HasValue == (resultKind is LookupResultKind.Viable)); 3213if (!best.HasValue && resultKind != LookupResultKind.Ambiguous) 3243if (!best.HasValue) 4229if (!best.HasValue)
Binder\Binder_Statements.cs (1)
2746if (!best.HasValue)
Binder\Binder_TupleOperators.cs (1)
162if (best.HasValue)
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (1)
85if (this.Best.HasValue)