Example #1
0
 internal override AstVisitAction InternalVisit(AstVisitor visitor)
 {
     AstVisitAction action = visitor.VisitErrorExpression(this);
     if (action == AstVisitAction.SkipChildren)
     {
         return AstVisitAction.Continue;
     }
     if ((action == AstVisitAction.Continue) && (this.NestedAst != null))
     {
         foreach (Ast ast in this.NestedAst)
         {
             action = ast.InternalVisit(visitor);
             if (action != AstVisitAction.Continue)
             {
                 return action;
             }
         }
     }
     return action;
 }
Example #2
0
        internal override AstVisitAction InternalVisit(AstVisitor visitor)
        {
            AstVisitAction action = visitor.VisitErrorExpression(this);

            if (action == AstVisitAction.SkipChildren)
            {
                return(AstVisitAction.Continue);
            }
            if ((action == AstVisitAction.Continue) && (this.NestedAst != null))
            {
                foreach (Ast ast in this.NestedAst)
                {
                    action = ast.InternalVisit(visitor);
                    if (action != AstVisitAction.Continue)
                    {
                        return(action);
                    }
                }
            }
            return(action);
        }