Exemplo n.º 1
0
        internal static TypedStatementNode TypedStatement(Kind k, ExprNode expr, IdentNode label, StatementNode stmt1, StatementNode stmt2, ListNode stmts, TypeNode type, Symbol s)
        {
            TypedStatementNode res = new TypedStatementNode();

            res.kind  = k;
            res.start = s.pos;
            res.end   = s.endpos;
            res.expr  = expr;
            res.label = label;
            res.stmt1 = stmt1;
            res.stmt2 = stmt2;
            res.stmts = stmts;
            res.type  = type;
            return(res);
        }
Exemplo n.º 2
0
 internal static TypedStatementNode TypedStatement( Kind k, ExprNode expr, IdentNode label, StatementNode stmt1, StatementNode stmt2, ListNode stmts, TypeNode type, Symbol s )
 {
     TypedStatementNode res = new TypedStatementNode();
     res.kind = k;
     res.start = s.pos;
     res.end = s.endpos;
     res.expr = expr;
     res.label = label;
     res.stmt1 = stmt1;
     res.stmt2 = stmt2;
     res.stmts = stmts;
     res.type = type;
     return res;
 }