public override TResult Accept <TResult>(IParseTreeVisitor <TResult> visitor)
        {
            IPredicateVisitor <TResult> typedVisitor = visitor as IPredicateVisitor <TResult>;

            if (typedVisitor != null)
            {
                return(typedVisitor.VisitPredicate(this));
            }
            else
            {
                return(visitor.VisitChildren(this));
            }
        }
Ejemplo n.º 2
0
 public override T Accept <T>(IPredicateVisitor <T> visitor)
 {
     return(visitor.VisitPredicate(this));
 }