예제 #1
0
        public static LambdaClosure MakeLambdaClosure(LambdaDefinition def, IRuntimeVariables hoistValues)
        {
            var closure = new LambdaClosure
            {
                Definition = def,
                HoistFrame = new Frame(def.HoistNames, hoistValues)
            };

            return(closure);
        }
예제 #2
0
        public static LambdaClosure MakeLambdaClosure(LambdaDefinition def)
        {
            var closure = new LambdaClosure
            {
                Definition = def,
                Frame      = Runtime.CurrentThreadContext.Frame
            };

            return(closure);
        }