Exemple #1
0
 internal static StatementNode Statement( Kind k, ExprNode expr, IdentNode label, StatementNode stmt1, StatementNode stmt2, ListNode stmts, Symbol s )
 {
     StatementNode res = new StatementNode();
     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;
     return res;
 }
Exemple #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;
 }
Exemple #3
0
 internal static MethodDecl Method( Kind k, ListNode attributes, ModifiersNode modifiers, IdentNode name, TypeNode return_type, ListNode parameters, StatementNode body, ConstructorInitializerNode base_init, Symbol s )
 {
     MethodDecl res = new MethodDecl();
     res.kind = k;
     res.start = s.pos;
     res.end = s.endpos;
     res.attributes = attributes;
     res.modifiers = modifiers;
     res.name = name;
     res.return_type = return_type;
     res.parameters = parameters;
     res.body = body;
     res.base_init = base_init;
     return res;
 }
Exemple #4
0
 internal static AccessorNode Accessor( ListNode attributes, IdentNode name, StatementNode body, Symbol s )
 {
     AccessorNode res = new AccessorNode();
     res.kind = Kind.Accessor;
     res.start = s.pos;
     res.end = s.endpos;
     res.attributes = attributes;
     res.name = name;
     res.body = body;
     return res;
 }
Exemple #5
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);
        }
Exemple #6
0
        internal static StatementNode Statement(Kind k, ExprNode expr, IdentNode label, StatementNode stmt1, StatementNode stmt2, ListNode stmts, Symbol s)
        {
            StatementNode res = new StatementNode();

            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;
            return(res);
        }
Exemple #7
0
        internal static MethodDecl Method(Kind k, ListNode attributes, ModifiersNode modifiers, IdentNode name, TypeNode return_type, ListNode parameters, StatementNode body, ConstructorInitializerNode base_init, Symbol s)
        {
            MethodDecl res = new MethodDecl();

            res.kind        = k;
            res.start       = s.pos;
            res.end         = s.endpos;
            res.attributes  = attributes;
            res.modifiers   = modifiers;
            res.name        = name;
            res.return_type = return_type;
            res.parameters  = parameters;
            res.body        = body;
            res.base_init   = base_init;
            return(res);
        }