Example #1
0
 void WriteConditionalBranch(ActionFlowGraph afg, ConditionalBranchActionBlock block)
 {
     _writer.Write("if ");
     WriteExpression(block.Condition);
     _writer.Write(' ');
     WriteGoto(afg, block.Then);
 }
Example #2
0
        public void ConditionalBranchActionBlock()
        {
            ActionFlowGraph afg = GetActionFlowGraph("SimpleIf");
            ConditionalBranchActionBlock cbr = (ConditionalBranchActionBlock)afg.Blocks [0];

            Assert.AreSame(afg.Blocks [2], cbr.Then, "Then");
            Assert.AreSame(afg.Blocks [1], cbr.Else, "Else");
        }
Example #3
0
 private ActionBlock OnConditionalBranch(ConditionalBranchActionBlock block)
 {
     throw new QueryOptimizationException();
 }