public virtual void Visit(IMethodDefinition method) { this.Visit(method.GetReturnValueAttributes(Context)); this.Visit(method.RefCustomModifiers); this.Visit(method.ReturnValueCustomModifiers); if (method.HasDeclarativeSecurity) { this.Visit(method.SecurityAttributes); } if (method.IsGeneric) { this.Visit(method.GenericParameters); } this.Visit(method.GetType(Context)); this.Visit(method.Parameters); if (method.IsPlatformInvoke) { this.Visit(method.PlatformInvokeData); } }
public IEnumerable <ICustomAttribute> GetReturnValueAttributes(EmitContext context) { return(_oldMethod.GetReturnValueAttributes(context).Select(a => new DeletedCustomAttribute(a, _typesUsedByDeletedMembers))); }