} // proc ParseFrame public void PopFrame(ParseFrame frame) { if (currentFrame == null || currentFrame != frame) { throw new InvalidOperationException("Invalid stack."); } currentFrame = frame.Parent; } // proc PopFrame
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
} // ctor #endregion #region -- Frames --------------------------------------------------------------- public ParseFrame PushFrame(XNode source) { return(currentFrame = new ParseFrame(currentFrame == null ? this : (LuaTable)currentFrame, source)); } // proc ParseFrame
} // ctor #endregion #region -- Frames --------------------------------------------------------- public ParseFrame PushFrame(XNode source) => currentFrame = new ParseFrame(currentFrame == null ? this : (LuaTable)currentFrame, source);