示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CopyStackContext"/> class.
        /// </summary>
        /// <param name="context">The context.</param>
        public CopyStackContext(CopyStackContext context)
        {
            this.variables          = context.variables.Clone();
            this.controllVariables  = context.controllVariables.Clone();
            this.temporaryVariables = context.temporaryVariables.Clone();
            this.arrays             = context.arrays.Clone();

            StackLevel = context.StackLevel;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CopyStackContext" /> class.
        /// </summary>
        /// <param name="stackLevel">The stack level.</param>
        public CopyStackContext(int stackLevel)
        {
            this.variables          = new CopyIndexContainer();
            this.controllVariables  = new CopyIndexContainer();
            this.temporaryVariables = new CopySet <MemoryIndex>();
            this.arrays             = new CopySet <AssociativeArray>();

            StackLevel = stackLevel;
        }