Example #1
0
        public AplusScope(AplusScope parent,
                          string name,
                          Aplus runtime = null,
                          DLR.ParameterExpression runtimeParam = null,
                          DLR.ParameterExpression moduleParam  = null,
                          DLR.LabelTarget returnTarget         = null,
                          bool isEval       = false,
                          bool isMethod     = false,
                          bool isAssignment = false)
        {
            this.parent       = parent;
            this.name         = name;
            this.runtime      = runtime;
            this.runtimeParam = runtimeParam;
            this.moduleParam  = moduleParam;

            this.returnTarget = returnTarget;

            this.variables = new Dictionary <string, DLR.ParameterExpression>();

            this.callbackInfo = new CallbackInfoStorage();

            this.iseval = isEval;

            this.ismethod     = isMethod;
            this.isAssignment = isAssignment;

            InheritProperties(parent);
        }
Example #2
0
        public AplusScope(AplusScope parent,
            string name,
            Aplus runtime = null,
            DLR.ParameterExpression runtimeParam = null,
            DLR.ParameterExpression moduleParam = null,
            DLR.LabelTarget returnTarget = null,
            bool isEval = false,
            bool isMethod = false,
            bool isAssignment = false)
        {
            this.parent = parent;
            this.name = name;
            this.runtime = runtime;
            this.runtimeParam = runtimeParam;
            this.moduleParam = moduleParam;

            this.returnTarget = returnTarget;

            this.variables = new Dictionary<string, DLR.ParameterExpression>();

            this.callbackInfo = new CallbackInfoStorage();

            this.iseval = isEval;

            this.ismethod = isMethod;
            this.isAssignment = isAssignment;

            InheritProperties(parent);
        }