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)
1476
if (result.Result.
IsValid
)
1595
if (!(result.Result.
IsValid
|| result.HasUseSiteDiagnosticToReport))
1631
if (!result.Result.
IsValid
)
1700
if (!result.Result.
IsValid
)
1721
if (!result.Result.
IsValid
)
2095
Debug.Assert(m1.Result.
IsValid
);
2096
Debug.Assert(m2.Result.
IsValid
);
2135
Debug.Assert(m1.Result.
IsValid
);
2136
Debug.Assert(m2.Result.
IsValid
);
2680
Debug.Assert(m.Result.
IsValid
);
4224
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
);
155
if (pair.Result.
IsValid
)
1488
if (res.Result.
IsValid
)
1561
else if (System.Linq.Enumerable.Count(ResultsBuilder, x => x.Result.
IsValid
) > 1)