Пример #1
0
 public void Append(Constraint constraint)
 {
     if (lastPushed is ConstraintOperator)
     {
         SetTopOperatorRightContext(constraint);
     }
     constraints.Push(constraint);
     lastPushed = constraint;
     constraint.SetBuilder(this);
 }
Пример #2
0
        /// <summary>
        /// Appends the specified constraint to the expresson by pushing
        /// it on the constraint stack.
        /// </summary>
        /// <param name="constraint">The constraint to push.</param>
        public Constraint Append(Constraint constraint)
        {
            if (lastPushed is ConstraintOperator)
            {
                SetTopOperatorRightContext(constraint);
            }

            constraints.Push(constraint);
            lastPushed         = constraint;
            constraint.Builder = this;

            return(constraint);
        }