Esempio n. 1
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;
        }
 public virtual void VisitFinallyClause(FinallyClauseSyntax node)
 {
     DefaultVisit(node);
 }
Esempio n. 3
0
        public static FinallyClauseSyntax FinallyClause(BlockSyntax block = null)
        {
            var result = new FinallyClauseSyntax();

            result.Block = block;

            return result;
        }