Пример #1
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);
        }
Пример #2
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;
 }