Example #1
0
        private void ReplaceSubThenSelectItAndRedraw(AstNode old, Func<AstNode> newf)
        {
            var subIsLine = _selectedSub == _selectedLine;
            var @new = (Expression)old.ReplaceMeWith(newf);

            SelectedSub = @new;
            if (subIsLine) SelectedLine = @new;

            SelectedTextBox.Text = SelectedLine.RenderPublicText(_rctx);
            RebuildTopPanelContent();
        }