Ejemplo n.º 1
0
        internal static DelegateNode Delegate(ListNode attributes, ModifiersNode modifiers, IdentNode name, TypeNode return_type, ListNode parameters, Symbol s)
        {
            DelegateNode res = new DelegateNode();

            res.kind        = Kind.Delegate;
            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;
            return(res);
        }
Ejemplo n.º 2
0
        private void LoadDelegate( UmlTypeHolder scope, DelegateNode decl, UsingBlock usings )
        {
            // get cl from old classes, or create a new one
            UmlDelegate deleg = null;
            foreach( UmlType ent in scope.Types ) {
                if( ent.name.Equals( decl.name.identifier ) && ent is UmlDelegate ) {
                    deleg = (UmlDelegate)ent;
                    break;
                }
            }
            if( deleg == null ) {
                deleg = new UmlDelegate();
                scope.Types.Add( deleg );
                added_classes.Add( deleg );
            }

            // register class
            classes[deleg] = decl;

            // fill with information
            deleg.Deleted = false;
            deleg.name = decl.name.identifier;
        }
Ejemplo n.º 3
0
 internal static DelegateNode Delegate( ListNode attributes, ModifiersNode modifiers, IdentNode name, TypeNode return_type, ListNode parameters, Symbol s )
 {
     DelegateNode res = new DelegateNode();
     res.kind = Kind.Delegate;
     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;
     return res;
 }