30 references to IsValid
Microsoft.CodeAnalysis.CSharp (30)
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (1)
87
return Result.
IsValid
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (24)
503
if (!result.Result.
IsValid
)
526
if (!result.Result.
IsValid
)
621
if (result.Result.
IsValid
&& member.RequiresInstanceReceiver() == requireStatic)
637
if (result.Result.
IsValid
&& !member.IsStatic)
655
if ((result.Result.
IsValid
|| result.Result.Kind == MemberResolutionKind.ConstructedParameterFailedConstraintCheck) &&
689
if (result.Result.
IsValid
)
865
if (!result.Result.
IsValid
)
948
if (!normalResult.
IsValid
)
953
if (expandedResult.
IsValid
|| completeResults)
961
if (result.
IsValid
|| completeResults || result.HasUseSiteDiagnosticToReportFor(constructor))
1054
Debug.Assert(!result.
IsValid
|| result.Kind == MemberResolutionKind.ApplicableInExpandedForm);
1190
if (!normalResult.Result.
IsValid
)
1219
if (result.Result.
IsValid
|| completeResults || result.HasUseSiteDiagnosticToReport)
1485
if (result.Result.
IsValid
)
1604
if (!(result.Result.
IsValid
|| result.HasUseSiteDiagnosticToReport))
1640
if (!result.Result.
IsValid
)
1709
if (!result.Result.
IsValid
)
1730
if (!result.Result.
IsValid
)
2104
Debug.Assert(m1.Result.
IsValid
);
2105
Debug.Assert(m2.Result.
IsValid
);
2144
Debug.Assert(m1.Result.
IsValid
);
2145
Debug.Assert(m2.Result.
IsValid
);
2702
Debug.Assert(m.Result.
IsValid
);
4246
Debug.Assert(!result.Result.
IsValid
|| result.Result.Kind == MemberResolutionKind.ApplicableInExpandedForm);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (5)
54
return _bestResultState == ThreeState.True && _bestResult.Result.
IsValid
;
68
Debug.Assert(_bestResultState == ThreeState.True && _bestResult.Result.
IsValid
);
172
if (pair.Result.
IsValid
)
1533
if (res.Result.
IsValid
)
1599
else if (System.Linq.Enumerable.Count(ResultsBuilder, x => x.Result.
IsValid
) > 1)