~ubuntu-branches/ubuntu/hardy/vala/hardy

« back to all changes in this revision

Viewing changes to vala/valainterface.vala

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge, Marc-Andre Lureau, Sebastian Dröge
  • Date: 2007-10-15 14:37:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071015143751-zy7hqcyjutdyfkg3
Tags: 0.1.4-1
[ Marc-Andre Lureau ]
* New Upstream Version
* debian/patches:
  + Remove patch no longer needed in 0.1.4
* debian/rules
  + Add xsltproc build dependency for the Vala manual.
  + Add libenchant-dev build dependency for enchant test case.
* debian/control, debian/vala-doc.install:
  + Add a "vala-doc" documentation package.

[ Sebastian Dröge ]
* debian/control:
  + Let vala-doc suggest valac/devhelp and don't depend on libvala0.
* debian/libvala-dev.install:
  + Add the new vapicheck utility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * This library is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU Lesser General Public
7
7
 * License as published by the Free Software Foundation; either
8
 
 * version 2 of the License, or (at your option) any later version.
 
8
 * version 2.1 of the License, or (at your option) any later version.
9
9
 
10
10
 * This library is distributed in the hope that it will be useful,
11
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33
33
         */
34
34
        public bool is_static { get; set; }
35
35
 
 
36
        public bool declaration_only { get; set; }
 
37
 
36
38
        private Gee.List<TypeParameter> type_parameters = new ArrayList<TypeParameter> ();
37
39
        
38
40
        private Gee.List<TypeReference> prerequisites = new ArrayList<TypeReference> ();
289
291
        }
290
292
 
291
293
        public override bool is_subtype_of (DataType! t) {
 
294
                if (this == t) {
 
295
                        return true;
 
296
                }
 
297
 
292
298
                foreach (TypeReference prerequisite in prerequisites) {
293
 
                        if (prerequisite.data_type == t ||
294
 
                            prerequisite.data_type.is_subtype_of (t)) {
 
299
                        if (prerequisite.data_type != null && prerequisite.data_type.is_subtype_of (t)) {
295
300
                                return true;
296
301
                        }
297
302
                }
310
315
                        }
311
316
                }
312
317
        }
313
 
        
 
318
 
 
319
        private void process_dbus_interface_attribute (Attribute! a) {
 
320
                if (declaration_only) {
 
321
                        cname = "DBusGProxy";
 
322
                }
 
323
        }
 
324
 
314
325
        /**
315
326
         * Process all associated attributes.
316
327
         */
318
329
                foreach (Attribute a in attributes) {
319
330
                        if (a.name == "CCode") {
320
331
                                process_ccode_attribute (a);
 
332
                        } else if (a.name == "DBusInterface") {
 
333
                                process_dbus_interface_attribute (a);
321
334
                        }
322
335
                }
323
336
        }