Catrobat.IDE.Core.Formulas.Editor.FormulaEditor.PushState C# (CSharp) Method

PushState() private method

private PushState ( Stack stack ) : void
stack Stack
return void
        private void PushState(Stack<EditorState> stack)
        {
            try
            {
                stack.Push(new EditorState(Tokens, CaretIndex, SelectionLength));
            }
            catch (Exception)
            { return; }
        }