示例#1
0
        /// <summary>
        /// Visit condition (if ConditionalStmt does not represent else).
        /// Visit statements in ConditionalStmt.
        /// </summary>
        /// <param name="x"></param>
        virtual public void VisitConditionalStmt(ConditionalStmt x)
        {
            if (x.Condition != null)
            {
                VisitElement(x.Condition);
            }

            VisitElement(x.Statement);
        }
示例#2
0
        /// <summary>
        /// Visit condition (if ConditionalStmt does not represent else).
        /// Visit statements in ConditionalStmt.
        /// </summary>
        /// <param name="x"></param>
        virtual public void VisitConditionalStmt(ConditionalStmt x)
        {
            if (x.Condition != null) VisitElement(x.Condition);

            VisitElement(x.Statement);
        }