예제 #1
0
            }             // proc ParseFrame

            public void PopFrame(ParseFrame frame)
            {
                if (currentFrame == null || currentFrame != frame)
                {
                    throw new InvalidOperationException("Invalid stack.");
                }
                currentFrame = frame.Parent;
            }             // proc PopFrame
예제 #2
0
            public DEConfigurationStackException(ParseFrame currentFrame, XObject x, string message, Exception innerException = null)
                : base(x, message, innerException)
            {
                var sbStack = new StringBuilder();
                var c       = currentFrame;

                while (c != null)
                {
                    c.AppendStackFrame(sbStack);
                    c = c.Parent;
                }
                stackFrames = sbStack.ToString();
            }             // ctor
예제 #3
0
            }             // ctor

            #endregion

            #region -- Frames ---------------------------------------------------------------

            public ParseFrame PushFrame(XNode source)
            {
                return(currentFrame = new ParseFrame(currentFrame == null ? this : (LuaTable)currentFrame, source));
            }             // proc ParseFrame
예제 #4
0
            }             // ctor

            #endregion

            #region -- Frames ---------------------------------------------------------

            public ParseFrame PushFrame(XNode source)
            => currentFrame = new ParseFrame(currentFrame == null ? this : (LuaTable)currentFrame, source);