public virtual void VisitTryStatement(TryStatementSyntax node)
 {
     DefaultVisit(node);
 }
Example #2
0
        public static TryStatementSyntax TryStatement(params CatchClauseSyntax[] catches)
        {
            var result = new TryStatementSyntax();

            if (catches != null)
                result.Catches.AddRange(catches);

            return result;
        }
Example #3
0
        public static TryStatementSyntax TryStatement(BlockSyntax block = null, IEnumerable<CatchClauseSyntax> catches = null, FinallyClauseSyntax @finally = null)
        {
            var result = new TryStatementSyntax();

            result.Block = block;
            if (catches != null)
                result.Catches.AddRange(catches);
            result.Finally = @finally;

            return result;
        }
Example #4
0
        public static TryStatementSyntax TryStatement(IEnumerable<CatchClauseSyntax> catches = null)
        {
            var result = new TryStatementSyntax();

            if (catches != null)
                result.Catches.AddRange(catches);

            return result;
        }
Example #5
0
 public virtual void VisitTryStatement(TryStatementSyntax node)
 {
     DefaultVisit(node);
 }