Ejemplo n.º 1
0
 /// <summary>
 /// Accumulate diagnostics related to the variance safety of an interface method.
 /// </summary>
 private static void CheckMethodVarianceSafety(this MethodSymbol method, DiagnosticBag diagnostics)
 {
     method.CheckMethodVarianceSafety(
         returnTypeLocationProvider: m =>
     {
         var syntax = m.GetDeclaringSyntax <MethodDeclarationSyntax>();
         return((syntax == null) ? null : syntax.ReturnType.Location);
     },
         diagnostics: diagnostics);
 }