Exemple #1
0
        public void AppendTop(CodePiece top)
        {
            top = top.Copy();

            CodePiece compressConn;

            if (ASTObject.CGO.CompressVerticalCombining && (compressConn = DoCompressVertically(top, this)) != null)
            {
                this.RemoveRow(this.MinY);
                top.RemoveRow(top.MaxY - 1);

                this.AppendTopDirect(compressConn);
            }

            AppendTopDirect(top);
        }
Exemple #2
0
        public void AppendBottom(CodePiece bot)
        {
            bot = bot.Copy();

            CodePiece compressConn;

            if (ASTObject.CGO.CompressVerticalCombining && (compressConn = DoCompressVertically(this, bot)) != null)
            {
                this.RemoveRow(this.MaxY - 1);
                bot.RemoveRow(bot.MinY);

                this.AppendBottomDirect(compressConn);
            }

            AppendBottomDirect(bot);
        }