Exemple #1
0
        /// <summary>
        /// Visit statements and catches.
        /// </summary>
        /// <param name="x"></param>
        virtual public void VisitTryStmt(TryStmt x)
        {
            // visit statements
            VisitStatementList(x.Statements);

            // visit catch blocks
            foreach (CatchItem c in x.Catches)
                VisitElement(c);
        }
Exemple #2
0
        /// <summary>
        /// Visit statements and catches.
        /// </summary>
        /// <param name="x"></param>
        virtual public void VisitTryStmt(TryStmt x)
        {
            // visit statements
            VisitStatementList(x.Statements);

            // visit catch blocks
            foreach (CatchItem c in x.Catches)
            {
                VisitElement(c);
            }
        }
        /// <summary>
        /// Visit statements and catches.
        /// </summary>
        /// <param name="x"></param>
        virtual public void VisitTryStmt(TryStmt x)
        {
            // visit statements
            VisitStatementList(x.Statements);

            // visit catch blocks
            if (x.Catches != null)
                foreach (CatchItem c in x.Catches)
                    VisitElement(c);

            // visit finally block
            VisitElement(x.FinallyItem);
        }
Exemple #4
0
        /// <summary>
        /// Visit statements and catches.
        /// </summary>
        /// <param name="x"></param>
        virtual public void VisitTryStmt(TryStmt x)
        {
            // visit statements
            VisitStatements(x.Statements);

            // visit catch blocks
            if (x.Catches != null)
                foreach (CatchItem c in x.Catches)
                    VisitElement(c);

            // visit finally block
            VisitElement(x.FinallyItem);
        }