Beispiel #1
0
        public static Block Not(Block expression)
        {
            var builder = new CodeBuilder();

            builder.Verb(new Not());
            builder.Parenthesize(expression);
            return(builder.Block);
        }
Beispiel #2
0
        public static Block ParenthesizeBlock(Block block)
        {
            var builder = new CodeBuilder();

            builder.Parenthesize(block);
            var newBlock = builder.Block;

            newBlock.AutoRegister = false;
            return(newBlock);
        }