/// <remarks>
 /// Returns false for <see cref="MemberResolutionKind.UnsupportedMetadata"/>
 /// because those diagnostics are only reported if no other candidates are
 /// available.
 /// </remarks>
 internal bool HasUseSiteDiagnosticToReportFor(Symbol symbol)
 {
     // There is a use site diagnostic to report here, but it is not reported
     // just because this member was a candidate - only if it "wins".
     return(!SuppressUseSiteDiagnosticsForKind(this.Kind) &&
            (object)symbol != null && symbol.GetUseSiteDiagnostic() != null);
 }
示例#2
0
 /// <remarks>
 /// Returns false for <see cref="MemberResolutionKind.UnsupportedMetadata"/>
 /// because those diagnostics are only reported if no other candidates are
 /// available.
 /// </remarks>
 internal bool HasUseSiteDiagnosticToReportFor(Symbol symbol)
 {
     // There is a use site diagnostic to report here, but it is not reported
     // just because this member was a candidate - only if it "wins".
     return !SuppressUseSiteDiagnosticsForKind(this.Kind) &&
         (object)symbol != null && symbol.GetUseSiteDiagnostic() != null;
 }