Beispiel #1
0
        private SyntaxNode ChainBuild(SyntaxGenerator generator, IEnumerable <Statement> finally_clause)
        {
            Stack <SyntaxNode> catches   = new Stack <SyntaxNode>();
            TryStatement       statement = this;

            while (statement is TryCatchStatement c)
            {
                catches.Push(c.BuildClause(generator));
                statement = c.original;
            }

            return(statement.BuildWithCatch(generator, catches, finally_clause));
        }
Beispiel #2
0
 internal TryCatchStatement(TryStatement original, ReferenceBuilder type, string name, Statement[] statements) : base(statements)
 {
     this.original = original;
     this.name     = name;
     this.type     = type;
 }
Beispiel #3
0
 internal TryFinallyStatement(TryStatement original, Statement[] statements)
 {
     this.original   = original;
     this.statements = statements;
 }