예제 #1
0
 public override QAst Optimize()
 {
     LeftOperand  = LeftOperand.Optimize();
     RightOperand = RightOperand.Optimize();
     _children    = new List <QAst> {
         LeftOperand, RightOperand
     };
     return(this);
 }
예제 #2
0
        public string SerializeAst
        (
            QAst root
        )
        {
            if (ReferenceEquals(root, null))
            {
                throw new ArgumentNullException("root");
            }

            return(root.ToString());
        }