Beispiel #1
0
        public override Func <IExtractContext, string[]> Apply(
            IMethodInformation method, DecodeContext decodeContext)
        {
            if (method.IsStatic)
            {
                throw new InvalidProgramSequenceException(
                          "Invalid method token (static): Location={0}, Method={1}",
                          decodeContext.CurrentCode.RawLocation,
                          method.FriendlyName);
            }

            return(CallConverterUtilities.Apply(method, decodeContext, true));
        }
Beispiel #2
0
        public override ExpressionEmitter Prepare(
            IMethodInformation method, DecodeContext decodeContext)
        {
            if (method.IsStatic)
            {
                throw new InvalidProgramSequenceException(
                          "Invalid method token (static): Location={0}, Method={1}",
                          decodeContext.CurrentCode.RawLocation,
                          method.FriendlyName);
            }

            return(CallConverterUtilities.Prepare(method, decodeContext, true));
        }
Beispiel #3
0
 public override Func <IExtractContext, string[]> Apply(
     IMethodInformation method, DecodeContext decodeContext)
 {
     return(CallConverterUtilities.Apply(method, decodeContext, false));
 }
Beispiel #4
0
 public override ExpressionEmitter Prepare(
     IMethodInformation method, DecodeContext decodeContext)
 {
     return(CallConverterUtilities.Prepare(method, decodeContext, false));
 }