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
)
619
if (result.Result.
IsValid
&& member.RequiresInstanceReceiver() == requireStatic)
635
if (result.Result.
IsValid
&& !member.IsStatic)
653
if ((result.Result.
IsValid
|| result.Result.Kind == MemberResolutionKind.ConstructedParameterFailedConstraintCheck) &&
687
if (result.Result.
IsValid
)
863
if (!result.Result.
IsValid
)
946
if (!normalResult.
IsValid
)
951
if (expandedResult.
IsValid
|| completeResults)
959
if (result.
IsValid
|| completeResults || result.HasUseSiteDiagnosticToReportFor(constructor))
1052
Debug.Assert(!result.
IsValid
|| result.Kind == MemberResolutionKind.ApplicableInExpandedForm);
1188
if (!normalResult.Result.
IsValid
)
1217
if (result.Result.
IsValid
|| completeResults || result.HasUseSiteDiagnosticToReport)
1482
if (result.Result.
IsValid
)
1601
if (!(result.Result.
IsValid
|| result.HasUseSiteDiagnosticToReport))
1637
if (!result.Result.
IsValid
)
1706
if (!result.Result.
IsValid
)
1727
if (!result.Result.
IsValid
)
2101
Debug.Assert(m1.Result.
IsValid
);
2102
Debug.Assert(m2.Result.
IsValid
);
2141
Debug.Assert(m1.Result.
IsValid
);
2142
Debug.Assert(m2.Result.
IsValid
);
2699
Debug.Assert(m.Result.
IsValid
);
4243
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
)
1524
if (res.Result.
IsValid
)
1590
else if (System.Linq.Enumerable.Count(ResultsBuilder, x => x.Result.
IsValid
) > 1)