Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public Formula Visit(BinaryFormula formula)
 {
     return formula;
 }
Exemplo n.º 3
0
 public override Formula Visit(BinaryFormula formula)
 {
     IncreaseIfNecessary(formula.Right, _ => _.TypeDeclaration, increased => formula.Right = increased);
     return base.Visit(formula);
 }