public ProxyMethodParameterCodec(MethodParameterDescription description) { type = description.Type; way = description.Way; argIndex = description.Index + 1; codec = new IndirectCodec(type); emitLoad = description.Way == MethodParameterWay.Val ? Loaders.Argument(argIndex) : Loaders.ArgumentRef(argIndex, description.Type); }
public HandlerParameterCodec(IEmittingContext emittingContext, MethodParameterDescription description) { this.emittingContext = emittingContext; type = description.Type; way = description.Way; codec = new IndirectCodec(type); if (IsResponseParameter) { local = emittingContext.IL.DeclareLocal(type); } }