예제 #1
0
 public virtual void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence)
 {
     if (this.Precedence.GetLevel() < parentPrecedence.GetLevel()) {
         writer.Write("(");
         ToPrecedenceFreeEPL(writer);
         writer.Write(")");
     }
     else {
         ToPrecedenceFreeEPL(writer);
     }
 }
예제 #2
0
 public virtual void ToEPL(
     TextWriter writer,
     ExprPrecedenceEnum parentPrecedence,
     ExprNodeRenderableFlags flags)
 {
     if (Precedence.GetLevel() < parentPrecedence.GetLevel()) {
         writer.Write("(");
         ToPrecedenceFreeEPL(writer, flags);
         writer.Write(")");
     }
     else {
         ToPrecedenceFreeEPL(writer, flags);
     }
 }