Пример #1
0
 public virtual Formula Visit(BinaryFormula formula)
 {
     Visit((Formula)formula);
     if (formula.Left != null) formula.Left.Accept(this);
     if (formula.Right != null) formula.Right.Accept(this);
     return visitor.Visit(formula);
 }
Пример #2
0
 public Formula Visit(BinaryFormula formula)
 {
     return formula;
 }
Пример #3
0
 public override Formula Visit(BinaryFormula formula)
 {
     IncreaseIfNecessary(formula.Right, _ => _.TypeDeclaration, increased => formula.Right = increased);
     return base.Visit(formula);
 }