示例#1
0
        ///////////////////////////////////////////////////////////////////////

        #region IResolve Members
        public override ReturnCode GetVariableFrame(
            ref ICallFrame frame,
            ref string varName,
            ref VariableFlags flags,
            ref Result error
            )
        {
            INamespace @namespace = NamespaceOps.GetCurrent(
                base.Interpreter, frame);

            if (@namespace != null)
            {
                IResolve resolve = @namespace.Resolve;

                if (resolve != null)
                {
                    return(resolve.GetVariableFrame(
                               ref frame, ref varName, ref flags, ref error));
                }
            }

            return(NamespaceOps.GetVariableFrame(
                       base.Interpreter, ref frame, ref varName, ref flags,
                       ref error));
        }