Ejemplo n.º 1
0
 /// <summary>
 /// Accumulate diagnostics related to the variance safety of a delegate.
 /// </summary>
 internal static void CheckDelegateVarianceSafety(this SourceDelegateMethodSymbol method, DiagnosticBag diagnostics)
 {
     method.CheckMethodVarianceSafety(
         returnTypeLocationProvider: m =>
     {
         var syntax = m.GetDeclaringSyntax <DelegateDeclarationSyntax>();
         return((syntax == null) ? null : syntax.ReturnType.Location);
     },
         diagnostics: diagnostics);
 }
 internal SourceDelegateClonedParameterSymbolForBeginAndEndInvoke(SourceParameterSymbol originalParam, SourceDelegateMethodSymbol newOwner, int newOrdinal)
     : base(originalParam, newOwner, newOrdinal, suppressOptional: true)
 {
 }