]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Api: Move all classes to the Valadoc.Api namespace
authorDidier 'Ptitjes <ptitjes@free.fr>
Fri, 16 Oct 2009 18:46:55 +0000 (20:46 +0200)
committerDidier 'Ptitjes <ptitjes@free.fr>
Fri, 16 Oct 2009 18:46:55 +0000 (20:46 +0200)
85 files changed:
src/doclets/devhelp/doclet/Makefile.am
src/doclets/devhelp/doclet/doclet.vala
src/doclets/htm/doclet/Makefile.am
src/doclets/htm/doclet/doclet.vala
src/doclets/htmlhelpers/doclet/Makefile.am
src/doclets/htmlhelpers/doclet/doclet.vala
src/doclets/htmlhelpers/doclet/globals.vala
src/libvaladoc/apitree/apiitem.vala
src/libvaladoc/apitree/apimembernode.vala
src/libvaladoc/apitree/apinode.vala
src/libvaladoc/apitree/apinodebuilder.vala
src/libvaladoc/apitree/apisymbolnode.vala
src/libvaladoc/apitree/apitree.vala
src/libvaladoc/apitree/apitypesymbolnode.vala
src/libvaladoc/apitree/array.vala
src/libvaladoc/apitree/class.vala
src/libvaladoc/apitree/classhandler.vala
src/libvaladoc/apitree/constant.vala
src/libvaladoc/apitree/constanthandler.vala
src/libvaladoc/apitree/constructionmethodhandler.vala
src/libvaladoc/apitree/delegate.vala
src/libvaladoc/apitree/delegatehandler.vala
src/libvaladoc/apitree/enum.vala
src/libvaladoc/apitree/enumhandler.vala
src/libvaladoc/apitree/enumvalue.vala
src/libvaladoc/apitree/errorcode.vala
src/libvaladoc/apitree/errordomain.vala
src/libvaladoc/apitree/errordomainhandler.vala
src/libvaladoc/apitree/exceptionlisthandler.vala
src/libvaladoc/apitree/field.vala
src/libvaladoc/apitree/fieldhandler.vala
src/libvaladoc/apitree/formalparameter.vala
src/libvaladoc/apitree/interface.vala
src/libvaladoc/apitree/interfacehandler.vala
src/libvaladoc/apitree/method.vala
src/libvaladoc/apitree/methodhandler.vala
src/libvaladoc/apitree/namespace.vala
src/libvaladoc/apitree/namespacehandler.vala
src/libvaladoc/apitree/package.vala
src/libvaladoc/apitree/parameterlisthandler.vala
src/libvaladoc/apitree/pointer.vala
src/libvaladoc/apitree/property.vala
src/libvaladoc/apitree/propertyaccessor.vala
src/libvaladoc/apitree/propertyhandler.vala
src/libvaladoc/apitree/returntypehandler.vala
src/libvaladoc/apitree/signal.vala
src/libvaladoc/apitree/signalhandler.vala
src/libvaladoc/apitree/signaturebuilder.vala
src/libvaladoc/apitree/struct.vala
src/libvaladoc/apitree/structhandler.vala
src/libvaladoc/apitree/symbolaccessibility.vala
src/libvaladoc/apitree/templateparameterlisthandler.vala
src/libvaladoc/apitree/typeparameter.vala
src/libvaladoc/apitree/typereference.vala
src/libvaladoc/apitree/visitable.vala
src/libvaladoc/content/blockcontent.vala
src/libvaladoc/content/comment.vala
src/libvaladoc/content/contentelement.vala
src/libvaladoc/content/embedded.vala
src/libvaladoc/content/headline.vala
src/libvaladoc/content/inlinecontent.vala
src/libvaladoc/content/inlinetaglet.vala
src/libvaladoc/content/link.vala
src/libvaladoc/content/list.vala
src/libvaladoc/content/listitem.vala
src/libvaladoc/content/paragraph.vala
src/libvaladoc/content/run.vala
src/libvaladoc/content/sourcecode.vala
src/libvaladoc/content/symbollink.vala
src/libvaladoc/content/table.vala
src/libvaladoc/content/tablecell.vala
src/libvaladoc/content/tablerow.vala
src/libvaladoc/content/text.vala
src/libvaladoc/doclet.vala
src/libvaladoc/documentation/documentationparser.vala
src/libvaladoc/drawer.vala
src/libvaladoc/taglets/tagletdeprecated.vala
src/libvaladoc/taglets/tagletinheritdoc.vala
src/libvaladoc/taglets/tagletlink.vala
src/libvaladoc/taglets/tagletparam.vala
src/libvaladoc/taglets/tagletreturn.vala
src/libvaladoc/taglets/tagletsee.vala
src/libvaladoc/taglets/tagletsince.vala
src/libvaladoc/taglets/tagletthrows.vala
src/valadoc/valadoc.vala

index 7d4841b5475b1456dce71494cf92167592a3194f..d2878995d0525d64841342831d49629a5483d9a5 100644 (file)
@@ -37,7 +37,7 @@ libdoclet_la_SOURCES =      \
 
 
 libdoclet.vala.stamp: $(libdoclet_la_VALASOURCES)
-       $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --pkg valadoc-1.0 --pkg libxml-2.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
+       $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --vapidir ../../../libvaladoc --pkg valadoc-1.0 --pkg libxml-2.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
        touch $@
 
 
index 5708b90e77b84b6d39c1f19ac1ac555ba6a90df9..bb198ed37116c0e0249605285bccbe8c1c1257f4 100755 (executable)
 
 
 using Valadoc;
-using GLib;
+using Valadoc.Api;
 using Xml;
 using Gee;
 
-
 namespace Valadoc.Devhelp {
        public string? get_html_link ( Settings settings, Documentation element, Documentation? pos ) {
                if ( element is Visitable ) {
@@ -202,7 +201,7 @@ public class Valadoc.Devhelp.Doclet : Valadoc.Html.BasicDoclet {
        private const string css_path = "wikistyle.css";
        private string package_dir_name = ""; // remove
        private DevhelpFormat devhelp;
-       private Tree tree;
+       private Api.Tree tree;
 
        private string get_path ( Api.Node element ) {
                return element.full_name () + ".html";
@@ -212,7 +211,7 @@ public class Valadoc.Devhelp.Doclet : Valadoc.Html.BasicDoclet {
                return GLib.Path.build_filename ( this.settings.path, this.package_dir_name, element.full_name () + ".html" );
        }
 
-       public override void initialisation ( Settings settings, Tree tree ) {
+       public override void initialisation ( Settings settings, Api.Tree tree ) {
                this.settings = settings;
                this.tree = tree;
 
@@ -451,7 +450,7 @@ public class Valadoc.Devhelp.Doclet : Valadoc.Html.BasicDoclet {
        public override void visit_error_code ( ErrorCode errcode ) {
        }
 
-       public override void visit_enum_value ( EnumValue enval ) {
+       public override void visit_enum_value ( Api.EnumValue enval ) {
        }
 
        public override void visit_delegate ( Delegate del ) {
@@ -468,7 +467,7 @@ public class Valadoc.Devhelp.Doclet : Valadoc.Html.BasicDoclet {
                file = null;
        }
 
-       public override void visit_signal ( Signal sig ) {
+       public override void visit_signal ( Api.Signal sig ) {
                string rpath = this.get_real_path ( sig );
                string path = this.get_path ( sig );
 
@@ -482,7 +481,7 @@ public class Valadoc.Devhelp.Doclet : Valadoc.Html.BasicDoclet {
                file = null;
        }
 
-       public override void visit_method ( Method m, Valadoc.MethodHandler parent ) {
+       public override void visit_method ( Method m, Api.MethodHandler parent ) {
                string rpath = this.get_real_path ( m );
                string path = this.get_path ( m );
 
index ffe8a83f053082213df8bc596d6414a67825545b..9817f5036697c00fcade48b313ef4ac7dee903b0 100644 (file)
@@ -39,7 +39,7 @@ libdoclet_la_SOURCES =      \
 
 
 libdoclet.vala.stamp: $(libdoclet_la_VALASOURCES)
-       $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --pkg valadoc-1.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
+       $(VALAC) -C --vapidir ../../htmlhelpers/doclet --pkg libhtmlhelpers-1.0 --vapidir ../../../vapi --vapidir ../../../libvaladoc --pkg valadoc-1.0 --pkg gee-1.0 --vapidir . --pkg docletconfig --basedir . $^
        touch $@
 
 
index b3a003fa7c0d34b77c99a6808da853584c58c1c7..5ddcb662e0451d1585be6d4f8bc2c7e8839dc725 100755 (executable)
 
 
 using Valadoc;
-using GLib;
+using Valadoc.Api;
 using Gee;
 
-
 namespace Valadoc {
        public string? get_html_link ( Settings settings, Documentation element, Documentation? pos ) {
                if ( element is Visitable ) {
@@ -109,7 +108,7 @@ public class Valadoc.HtmlDoclet : Valadoc.Html.BasicDoclet {
                return GLib.Path.build_filename ( this.settings.path, element.package.name, element.full_name () + ".html" );
        }
 
-       public override void initialisation ( Settings settings, Tree tree ) {
+       public override void initialisation ( Settings settings, Api.Tree tree ) {
                this.settings = settings;
 
                DirUtils.create ( this.settings.path, 0777 );
@@ -294,7 +293,7 @@ public class Valadoc.HtmlDoclet : Valadoc.Html.BasicDoclet {
        public override void visit_error_code ( ErrorCode errcode ) {
        }
 
-       public override void visit_enum_value ( EnumValue enval ) {
+       public override void visit_enum_value ( Api.EnumValue enval ) {
        }
 
        public override void visit_delegate ( Delegate del ) {
@@ -308,7 +307,7 @@ public class Valadoc.HtmlDoclet : Valadoc.Html.BasicDoclet {
                file = null;
        }
 
-       public override void visit_signal ( Signal sig ) {
+       public override void visit_signal ( Api.Signal sig ) {
                string rpath = this.get_real_path ( sig );
 
                GLib.FileStream file = GLib.FileStream.open ( rpath, "w");
@@ -319,7 +318,7 @@ public class Valadoc.HtmlDoclet : Valadoc.Html.BasicDoclet {
                file = null;
        }
 
-       public override void visit_method ( Method m, Valadoc.MethodHandler parent ) {
+       public override void visit_method ( Method m, Api.MethodHandler parent ) {
                string rpath = this.get_real_path ( m );
 
                GLib.FileStream file = GLib.FileStream.open ( rpath, "w");
index 7eda7eabe9329e5152d4c1879a6e3df1ca542415..e1a1fdd7f920cc6c0c197ba23218713fe40f8bc8 100644 (file)
@@ -44,7 +44,7 @@ libhtmlhelpersincludedir = $(includedir)/vala-1.0
 
 
 libhtmlhelpers.vala.stamp: $(libhtmlhelpers_la_VALASOURCES)
-       $(VALAC) -C -H libhtmlhelpers-1.0.h --library libhtmlhelpers-1.0 --basedir . --vapidir ../../../vapi --pkg valadoc-1.0 --pkg gee-1.0 --save-temps $^
+       $(VALAC) -C -H libhtmlhelpers-1.0.h --library libhtmlhelpers-1.0 --basedir . --vapidir ../../../vapi --vapidir ../../../libvaladoc --pkg valadoc-1.0 --pkg gee-1.0 --save-temps $^
        touch $@
 
 
index caf3ebcf28072e9f555dab9ffe4b35a7df36ed41..c66ab4f46658dc439830c73bd4a5c2eccbce802b 100755 (executable)
@@ -17,9 +17,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-
 using GLib;
 using Valadoc.Content;
+using Valadoc.Api;
 
 public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
        protected Settings settings;
@@ -68,7 +68,7 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                        this.write_navi_entry_html_template ( file, style, name );
        }
 
-       protected void write_wiki_pages (Tree tree, string css_path_wiki, string contentp) {
+       protected void write_wiki_pages (Api.Tree tree, string css_path_wiki, string contentp) {
                if ( tree.wikitree == null ) {
                        return ;
                }
@@ -266,10 +266,10 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
        }
 
        protected void write_navi_enum_inline ( GLib.FileStream file, Enum en, Api.Node? mself ) {
-               Gee.Collection<EnumValue> enum_values = en.get_enum_values ( );
+               Gee.Collection<Api.EnumValue> enum_values = en.get_enum_values ( );
                file.printf ( "<ul class=\"%s\">\n", css_navi );
 
-               foreach ( EnumValue env in enum_values ) {
+               foreach ( Api.EnumValue env in enum_values ) {
                        this.write_navi_entry ( file, env, en, css_navi_enval, true );
                }
 
@@ -377,7 +377,7 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                file.puts ( "\t\t\t</div>\n" );
        }
 
-       protected void write_navi_signal ( GLib.FileStream file, Signal sig ) {
+       protected void write_navi_signal ( GLib.FileStream file, Api.Signal sig ) {
                Api.Node parent = (Api.Node)sig.parent;
 
                file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_navigation );
@@ -527,10 +527,10 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                this.write_navi_child_construction_methods_collection ( file, methods, mself );
        }
 
-       protected void write_navi_child_signals ( GLib.FileStream file, SignalHandler sh, Api.Node? mself ) {
-               Gee.Collection<Signal> signals = sh.get_signal_list ( );
+       protected void write_navi_child_signals ( GLib.FileStream file, Api.SignalHandler sh, Api.Node? mself ) {
+               Gee.Collection<Api.Signal> signals = sh.get_signal_list ( );
 
-               foreach ( Signal sig in signals ) {
+               foreach ( Api.Signal sig in signals ) {
                        if ( sig == mself )
                                this.write_navi_entry ( file, sig, mself, css_navi_sig, false );
                        else
@@ -720,7 +720,7 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                _renderer.render (element.signature);
        }
 
-       public void write_navi_packages_inline ( GLib.FileStream file, Tree tree ) {
+       public void write_navi_packages_inline ( GLib.FileStream file, Api.Tree tree ) {
                file.printf ( "<ul class=\"%s\">\n", css_navi );
                foreach ( Package pkg in tree.get_package_list() ) {
                        if (pkg.is_visitor_accessible (settings)) {
@@ -735,13 +735,13 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                file.puts ( "</li>\n" );
        }
 
-       public void write_navi_packages ( GLib.FileStream file, Tree tree ) {
+       public void write_navi_packages ( GLib.FileStream file, Api.Tree tree ) {
                file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_navigation );
                this.write_navi_packages_inline ( file, tree );
                file.puts ( "\t\t\t</div>\n" );
        }
 
-       public void write_packages_content ( GLib.FileStream file, Tree tree ) {
+       public void write_packages_content ( GLib.FileStream file, Api.Tree tree ) {
                file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_content );
                file.printf ( "\t\t\t\t<h1 class=\"%s\">Packages:</h1>\n", css_title );
                file.printf ( "\t\t\t\t<hr class=\"%s\" />\n", css_headline_hr );
@@ -759,7 +759,7 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                file.puts ( "\t\t\t</div>\n" );
        }
 
-       public void write_method_content ( GLib.FileStream file, Method m , Valadoc.MethodHandler parent ) {
+       public void write_method_content ( GLib.FileStream file, Method m , Api.MethodHandler parent ) {
                string full_name = m.full_name ( );
                file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_content );
                file.printf ( "\t\t\t\t<h1 class=\"%s\">%s:</h1>\n", css_title, full_name );
@@ -801,7 +801,7 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                }
        }
 
-       public void write_signal_content ( GLib.FileStream file, Signal sig ) {
+       public void write_signal_content ( GLib.FileStream file, Api.Signal sig ) {
                string full_name = sig.full_name ( );
                file.printf ( "\t\t\t<div class=\"%s\">\n", css_style_content );
                file.printf ( "\t\t\t\t<h1 class=\"%s\">%s:</h1>\n", css_title, full_name );
@@ -923,11 +923,11 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
        }
 
        private void write_child_enum_values ( GLib.FileStream file, Enum en ) {
-               Gee.Collection<EnumValue> enum_values = en.get_enum_values ();
+               Gee.Collection<Api.EnumValue> enum_values = en.get_enum_values ();
                if ( enum_values.size > 0 ) {
                        file.printf ( "<h3 class=\"%s\">Enum Values:</h3>\n", css_title );
                        file.printf ( "<table class=\"%s\">\n", css_enum_table );
-                       foreach ( EnumValue enval in enum_values ) {
+                       foreach ( Api.EnumValue enval in enum_values ) {
                                file.puts ( "<tr>\n" );
                                file.printf ( "\t<td class=\"%s\" id=\"%s\">%s</td>\n", css_enum_table_name, enval.name, enval.name );
                                file.printf ( "\t<td class=\"%s\">\n", css_enum_table_text );
@@ -1266,12 +1266,12 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet {
                }
        }
 
-       protected void write_child_signals ( GLib.FileStream file, SignalHandler sh, Api.Node? mself ) {
-               Gee.Collection<Signal> signals = sh.get_signal_list ();
+       protected void write_child_signals ( GLib.FileStream file, Api.SignalHandler sh, Api.Node? mself ) {
+               Gee.Collection<Api.Signal> signals = sh.get_signal_list ();
                if ( signals.size > 0 ) {
-                       file.printf ( "<h3 class=\"%s\">Signals:</h3>\n", css_title );
+                       file.printf ( "<h3 class=\"%s\">Api.Signals:</h3>\n", css_title );
                        file.printf ( "<ul class=\"%s\">\n", css_inline_navigation );
-                       foreach ( Signal sig in signals ) {
+                       foreach ( Api.Signal sig in signals ) {
                                file.printf ( "\t<li class=\"%s\"><a class=\"%s\" href=\"%s\">%s</a>", get_html_inline_navigation_link_css_class (sig), css_navi_link, this.get_link(sig, mself), sig.name );
                                this.write_brief_description ( file, sig, mself );
                                file.printf ( "</li>\n" );
index edb7cf28f8af533e20d63ccb48efc22968f28d11..c455acd0fab75a84ce150f5461b7a34202750ae0 100755 (executable)
@@ -17,9 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-
-using GLib;
-
+using Valadoc.Api;
 
 namespace Valadoc.Html {
        public const string css_inline_navigation = "main_inline_navigation";
@@ -154,7 +152,7 @@ namespace Valadoc.Html {
                        prefix =  "../" + ((Api.Node)element).package.name;
                }
 
-               if ( element is Valadoc.EnumValue || element is Valadoc.ErrorCode ) {
+               if ( element is Api.EnumValue || element is Api.ErrorCode ) {
                        tmp = "#" + ((Api.Node)element).name;
                        element = (Api.Node)((Api.Node)element).parent;
                }
@@ -199,7 +197,7 @@ namespace Valadoc.Html {
                        else
                                return css_content_link_method;
                }
-               else if ( element is Signal ) {
+               else if ( element is Api.Signal ) {
                        return css_content_link_signal;
                }
                else if ( element is Property ) {
@@ -216,7 +214,7 @@ namespace Valadoc.Html {
                else if ( element is Constant ) {
                        return css_content_link_constant;
                }
-               else if ( element is EnumValue ) {
+               else if ( element is Api.EnumValue ) {
                        return css_content_link_enumvalue;
                }
                else if ( element is ErrorCode ) {
@@ -261,7 +259,7 @@ namespace Valadoc.Html {
                        else
                                return css_inline_navigation_method;
                }
-               else if ( element is Signal ) {
+               else if ( element is Api.Signal ) {
                        return css_inline_navigation_signal;
                }
                else if ( element is Property ) {
@@ -278,7 +276,7 @@ namespace Valadoc.Html {
                else if ( element is Constant ) {
                        return css_inline_navigation_constant;
                }
-               else if ( element is EnumValue ) {
+               else if ( element is Api.EnumValue ) {
                        return css_inline_navigation_enumvalue;
                }
                else if ( element is ErrorCode ) {
index 1d948114de5b736451244dac60a7e530559a5cf7..fa78d311272d2316265c9a054f17c0a05972c070 100644 (file)
@@ -1,6 +1,6 @@
 /* apiitem.vala
  *
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -25,7 +25,7 @@ using Gee;
 public abstract class Valadoc.Api.Item : Object {
        private Inline _signature;
 
-       public Api.Item parent {
+       public Item parent {
                protected set;
                get;
        }
index 7e7aed25b3f7617dd9161262a72ea49b532de91b..91a517086bfe74acb342d9f1fed9f2ec85e4c695 100644 (file)
@@ -1,6 +1,6 @@
 /* apitypesymbolnode.vala
  * 
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
  * 
  * This program is free software; you can redistribute it and/or
 
 using Gee;
 
+public abstract class Valadoc.Api.MemberNode : SymbolNode {
 
-public abstract class Valadoc.Api.MemberNode : Api.SymbolNode {
-
-       public MemberNode (Vala.Member symbol, Api.Node parent) {
+       public MemberNode (Vala.Member symbol, Node parent) {
                base (symbol, parent);
        }
 
@@ -39,4 +38,3 @@ public abstract class Valadoc.Api.MemberNode : Api.SymbolNode {
                base.process_comments (settings, parser);
        }
 }
-
index 8a42a4c6000067ed630d1612cc89444d400d440c..af3cbf652a239eeaed3bfe281dbbf1d68cd2135e 100644 (file)
@@ -1,6 +1,6 @@
 /* apinode.vala
  * 
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
  * 
  * This program is free software; you can redistribute it and/or
@@ -46,7 +46,7 @@ public enum Valadoc.Api.NodeType {
        TYPE_PARAMETER
 }
 
-public abstract class Valadoc.Api.Node : Api.Item, Visitable, Documentation {
+public abstract class Valadoc.Api.Node : Item, Visitable, Documentation {
        private bool do_document = false;
 
        public abstract string? name { owned get; }
@@ -57,7 +57,7 @@ public abstract class Valadoc.Api.Node : Api.Item, Visitable, Documentation {
        private Map<Vala.Symbol, Node> per_symbol_children;
        private Map<NodeType?, Gee.List<Node>> per_type_children;
 
-       public Node (Api.Node? parent) {
+       public Node (Node? parent) {
                this.parent = parent;
 
                per_name_children = new HashMap<string,Node> ();
@@ -157,12 +157,12 @@ public abstract class Valadoc.Api.Node : Api.Item, Visitable, Documentation {
                get {
                        if (this._nspace == null) {
                                Api.Item ast = this;
-                               while (ast is Valadoc.Namespace == false) {
+                               while (ast is Valadoc.Api.Namespace == false) {
                                        ast = ast.parent;
                                        if (ast == null)
                                                return null;
                                }
-                               this._nspace = (Valadoc.Namespace)ast;
+                               this._nspace = (Valadoc.Api.Namespace)ast;
                        }
                        return this._nspace;
                }
@@ -173,12 +173,12 @@ public abstract class Valadoc.Api.Node : Api.Item, Visitable, Documentation {
                get {
                        if (this._package == null) {
                                Api.Item ast = this;
-                               while (ast is Valadoc.Package == false) {
+                               while (ast is Valadoc.Api.Package == false) {
                                        ast = ast.parent;
                                        if (ast == null)
                                                return null;
                                }
-                               this._package = (Valadoc.Package)ast;
+                               this._package = (Valadoc.Api.Package)ast;
                        }
                        return this._package;
                }
@@ -198,8 +198,8 @@ public abstract class Valadoc.Api.Node : Api.Item, Visitable, Documentation {
                        GLib.StringBuilder full_name = new GLib.StringBuilder (this.name);
 
                        if (this.parent != null) {
-                               for (Api.Item pos = this.parent; pos is Package == false ; pos = pos.parent) {
-                                       string name = ((Api.Node)pos).name;
+                               for (Item pos = this.parent; pos is Package == false ; pos = pos.parent) {
+                                       string name = ((Node)pos).name;
                                        if (name != null) {
                                                full_name.prepend_unichar ('.');
                                                full_name.prepend (name);
index 87b0bcf9b30b6918ad115986a37d6cb0b0b5ce3c..a950d1193525ee9657ce3c2583c6c785bdf841a5 100644 (file)
@@ -1,6 +1,6 @@
 /* apinodebuilder.vala
  * 
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
  * 
  * This program is free software; you can redistribute it and/or
index 959560ebf1207a692a59427352b6a981bcf8edbf..3db9ca548fd83958287c4b3a67facbbcb85943d2 100644 (file)
@@ -1,6 +1,6 @@
 /* apisymbolnode.vala
  * 
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
  * 
  * This program is free software; you can redistribute it and/or
@@ -24,7 +24,7 @@
 using Gee;
 
 
-public abstract class Valadoc.Api.SymbolNode : Api.Node, SymbolAccessibility {
+public abstract class Valadoc.Api.SymbolNode : Node, SymbolAccessibility {
 
        protected Vala.Symbol symbol { private set; get; }
        // TODO Drop DocumentedElement
@@ -36,7 +36,7 @@ public abstract class Valadoc.Api.SymbolNode : Api.Node, SymbolAccessibility {
                }
        }
 
-       public SymbolNode (Vala.Symbol symbol, Api.Node parent) {
+       public SymbolNode (Vala.Symbol symbol, Node parent) {
                base (parent);
                this.symbol = symbol;
        }
index 246eb12a264bfcc604d7e020a02b8bc8ed56eb62..b398c082d3db4059f089af9d699368b5ed825ec1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 
 using Gee;
 
-
 // private
-public Valadoc.Class glib_error = null;
-
+public Valadoc.Api.Class glib_error = null;
 
-public class Valadoc.Tree {
+public class Valadoc.Api.Tree {
        private ArrayList<Package> packages = new ArrayList<Package>();
        private Package source_package = null;
-       private Valadoc.Settings settings;
+       private Settings settings;
        private Vala.CodeContext context;
        private ErrorReporter reporter;
        private Package sourcefiles = null;
@@ -57,7 +55,7 @@ public class Valadoc.Tree {
                doclet.initialisation (this.settings, this);
        }
 
-       private Api.Node? search_relative_to (Api.Node element, string[] path) {
+       private Node? search_relative_to (Node element, string[] path) {
                Api.Node? node = element;
                foreach (string name in path) {
                        node = node.find_by_name (name);
@@ -67,13 +65,13 @@ public class Valadoc.Tree {
                }
 
                if (node == null && element.parent != null) {
-                       node = search_relative_to ((Api.Node) element.parent, path);
+                       node = search_relative_to ((Node) element.parent, path);
                }
 
                return node;
        }
 
-       public Api.Node? search_symbol_str (Api.Node? element, string symname) {
+       public Node? search_symbol_str (Node? element, string symname) {
                string[] path = split_name (symname);
 
                if (element == null) {
@@ -81,13 +79,13 @@ public class Valadoc.Tree {
                        foreach (Package packgage in packages) {
                                node = search_relative_to (packgage, path);
                                if (node != null) {
-                                       return (Api.Node) node;
+                                       return (Node) node;
                                }
                        }
                        return null;
                }
 
-               return (Api.Node) search_relative_to ((Api.Node) element, path);
+               return (Node) search_relative_to ((Node) element, path);
        }
 
        private string[] split_name (string full_name) {
@@ -97,7 +95,7 @@ public class Valadoc.Tree {
                return params;
        }
 
-       public Tree (Valadoc.ErrorReporter reporter, Valadoc.Settings settings) {
+       public Tree (ErrorReporter reporter, Settings settings) {
                this.context = new Vala.CodeContext ( );
                Vala.CodeContext.push (context);
 
@@ -296,7 +294,7 @@ public class Valadoc.Tree {
                        }
                }
 
-               Api.NodeBuilder builder = new Api.NodeBuilder (this);
+               Api.NodeBuilder builder = new NodeBuilder (this);
                this.context.accept(builder);
                this.resolve_type_references ();
                this.add_dependencies_to_source_package ();
@@ -330,7 +328,7 @@ public class Valadoc.Tree {
                }
        }
 
-       internal Api.Node? search_vala_symbol (Vala.Symbol? vnode) {
+       internal Node? search_vala_symbol (Vala.Symbol? vnode) {
                if (vnode == null) {
                        return null;
                }
index df9a38a34f3b8e05bc0db942bd9d2b571656ac61..e21ebd20e82f2283c7eb77e0c7f07c5bf60465b7 100644 (file)
@@ -1,6 +1,6 @@
 /* apitypesymbolnode.vala
  * 
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008-2009 Florian Brosch, Didier Villevalois
  * 
  * This program is free software; you can redistribute it and/or
@@ -24,9 +24,9 @@
 using Gee;
 
 
-public abstract class Valadoc.Api.TypeSymbolNode : Api.SymbolNode {
+public abstract class Valadoc.Api.TypeSymbolNode : SymbolNode {
 
-       public TypeSymbolNode (Vala.TypeSymbol symbol, Api.Node parent) {
+       public TypeSymbolNode (Vala.TypeSymbol symbol, Node parent) {
                base (symbol, parent);
        }
 
index e0799dcae978a72cc9e9ba46f20175b6aa98911d..69fe1feeadb6d3fa4e05da80dfe8e1386f8662cd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Array : Api.Item {
+public class Valadoc.Api.Array : Item {
        private Vala.ArrayType vtype;
 
-       public Api.Item data_type {
+       public Item data_type {
                private set;
                get;
        }
 
-       public Array (Vala.ArrayType vtyperef, Api.Item parent) {
+       public Array (Vala.ArrayType vtyperef, Item parent) {
                this.vtype = vtyperef;
                this.parent = parent;
 
@@ -53,7 +53,7 @@ public class Valadoc.Array : Api.Item {
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_content (data_type.signature)
                        .append ("[]", false)
                        .get ();
index 3ce4a627928bc92c41ec29a54935cb5f238fa8eb..fe30777e79895b5a3e74fd9ed013b48c201c5808 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Class : Api.TypeSymbolNode, ClassHandler, StructHandler, SignalHandler, MethodHandler, EnumHandler, PropertyHandler, ConstructionMethodHandler, FieldHandler, DelegateHandler, ConstantHandler, TemplateParameterListHandler {
+public class Valadoc.Api.Class : TypeSymbolNode, ClassHandler, StructHandler, SignalHandler, MethodHandler, EnumHandler, PropertyHandler, ConstructionMethodHandler, FieldHandler, DelegateHandler, ConstantHandler, TemplateParameterListHandler {
        private ArrayList<TypeReference> interfaces;
        private Vala.Class vclass;
 
-       public Class (Vala.Class symbol, Api.Node parent) {
+       public Class (Vala.Class symbol, Node parent) {
                base (symbol, parent);
                this.interfaces = new ArrayList<TypeReference> ();
 
@@ -64,7 +64,7 @@ public class Valadoc.Class : Api.TypeSymbolNode, ClassHandler, StructHandler, Si
                doclet.visit_class ( this );
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.CLASS; } }
+       public override NodeType node_type { get { return NodeType.CLASS; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
@@ -95,7 +95,7 @@ public class Valadoc.Class : Api.TypeSymbolNode, ClassHandler, StructHandler, Si
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                if (is_abstract) {
@@ -104,11 +104,11 @@ public class Valadoc.Class : Api.TypeSymbolNode, ClassHandler, StructHandler, Si
                signature.append_keyword ("class");
                signature.append_symbol (this);
 
-               var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+               var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
                if (type_parameters.size > 0) {
                        signature.append ("<", false);
                        bool first = true;
-                       foreach (Api.Item param in type_parameters) {
+                       foreach (Item param in type_parameters) {
                                if (!first) {
                                        signature.append (",", false);
                                }
@@ -131,7 +131,7 @@ public class Valadoc.Class : Api.TypeSymbolNode, ClassHandler, StructHandler, Si
                                signature.append (":");
                        }
 
-                       foreach (Api.Item implemented_interface in interfaces) {
+                       foreach (Item implemented_interface in interfaces) {
                                if (!first) {
                                        signature.append (",", false);
                                }
index 3aff41887f9ac9e28ba16c95f1d29f5f7b7e374b..065d1122c731cc8250069a34ea040d6ba6db8e2f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 
 
-public interface Valadoc.ClassHandler : Api.Node {
+public interface Valadoc.Api.ClassHandler : Node {
        protected Class? find_vclass (Vala.Class vcl) {
                foreach (Class cl in get_class_list ()) {
                        if (cl.is_vclass (vcl)) {
@@ -36,11 +36,11 @@ public interface Valadoc.ClassHandler : Api.Node {
        }
 
        public Gee.Collection<Class> get_class_list () {
-               return get_children_by_type (Api.NodeType.CLASS);
+               return get_children_by_type (NodeType.CLASS);
        }
 
        public void visit_classes (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.CLASS, doclet);
+               accept_children_by_type (NodeType.CLASS, doclet);
        }
 }
 
index 4332e369c6ac714c554d081e1d5e07a9d4e8b78a..e3accae2c55eaf38eeb3408b011dacdccc562c9c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Constant : Api.MemberNode, ReturnTypeHandler {
+public class Valadoc.Api.Constant : MemberNode, ReturnTypeHandler {
        private Vala.Constant vconst;
 
        public TypeReference? type_reference {
@@ -32,7 +32,7 @@ public class Valadoc.Constant : Api.MemberNode, ReturnTypeHandler {
                return (this.vconst == vconst);
        }
 
-       public Constant (Vala.Constant symbol, Api.Node parent) {
+       public Constant (Vala.Constant symbol, Node parent) {
                base (symbol, parent);
                this.vconst = symbol;
 
@@ -49,7 +49,7 @@ public class Valadoc.Constant : Api.MemberNode, ReturnTypeHandler {
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_keyword (get_accessibility_modifier ())
                        .append_keyword ("const")
                        .append_content (type_reference.signature)
@@ -61,7 +61,7 @@ public class Valadoc.Constant : Api.MemberNode, ReturnTypeHandler {
                doclet.visit_constant (this, parent);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.CONSTANT; } }
+       public override NodeType node_type { get { return NodeType.CONSTANT; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet, (ConstantHandler)parent);
index a00579aea0333a2deb9240e58c231df181023c9c..ab44e89c70c1d4d22068462cf9b69517298f97c2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.ConstantHandler : Api.Node {
+public interface Valadoc.Api.ConstantHandler : Node {
        public Collection<Constant> get_constant_list () {
-               return get_children_by_type (Api.NodeType.CONSTANT);
+               return get_children_by_type (NodeType.CONSTANT);
        }
 
        public void visit_constants (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.CONSTANT, doclet);
+               accept_children_by_type (NodeType.CONSTANT, doclet);
        }
 }
index 223c87d65b4040e4cffbf4ce61eeae12d104d78f..46d96eace1c8ffe4cae3d753c701780b0c456bbb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.ConstructionMethodHandler : Api.Node {
+public interface Valadoc.Api.ConstructionMethodHandler : Node {
        public Collection<Method> get_construction_method_list () {
-               return get_children_by_type (Api.NodeType.CREATION_METHOD);
+               return get_children_by_type (NodeType.CREATION_METHOD);
        }
 
        public void visit_construction_methods ( Doclet doclet ) {
-               accept_children_by_type (Api.NodeType.CREATION_METHOD, doclet);
+               accept_children_by_type (NodeType.CREATION_METHOD, doclet);
        }
 }
 
index 5b5c52941c5aad28cc6c81b55e70739f2375d7c8..641aad86e6f941a4f200a92c70f786c34dceec67 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, ReturnTypeHandler, TemplateParameterListHandler, ExceptionHandler {
+public class Valadoc.Api.Delegate : TypeSymbolNode, ParameterListHandler, ReturnTypeHandler, TemplateParameterListHandler, ExceptionHandler {
        private Vala.Delegate vdelegate;
 
-       public Delegate (Vala.Delegate symbol, Api.Node parent) {
+       public Delegate (Vala.Delegate symbol, Node parent) {
                base (symbol, parent);
 
                this.vdelegate = symbol;
@@ -45,7 +45,7 @@ public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, Return
                doclet.visit_delegate (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.DELEGATE; } }
+       public override NodeType node_type { get { return NodeType.DELEGATE; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
@@ -67,7 +67,7 @@ public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, Return
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                if (is_static) {
@@ -77,11 +77,11 @@ public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, Return
                signature.append_content (type_reference.signature);
                signature.append_symbol (this);
 
-               var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER);
+               var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER);
                if (type_parameters.size > 0) {
                        signature.append ("<", false);
                        bool first = true;
-                       foreach (Api.Item param in type_parameters) {
+                       foreach (Item param in type_parameters) {
                                if (!first) {
                                        signature.append (",", false);
                                }
@@ -94,7 +94,7 @@ public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, Return
                signature.append ("(");
 
                bool first = true;
-               foreach (Api.Node param in get_children_by_type (Api.NodeType.FORMAL_PARAMETER)) {
+               foreach (Node param in get_children_by_type (NodeType.FORMAL_PARAMETER)) {
                        if (!first) {
                                signature.append (",", false);
                        }
@@ -104,11 +104,11 @@ public class Valadoc.Delegate : Api.TypeSymbolNode, ParameterListHandler, Return
 
                signature.append (")", false);
 
-               var exceptions = get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+               var exceptions = get_children_by_type (NodeType.ERROR_DOMAIN);
                if (exceptions.size > 0) {
                        signature.append_keyword ("throws");
 
-                       foreach (Api.Node param in exceptions) {
+                       foreach (Node param in exceptions) {
                                if (!first) {
                                        signature.append (",", false);
                                }
index 1a5c774b6517b7bd6b5216a59782eaaf3c7af1e4..f93c377121f15476a3ffe7c58d928a008deb02f4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.DelegateHandler : Api.Node {
+public interface Valadoc.Api.DelegateHandler : Node {
        public Gee.Collection<Delegate> get_delegate_list () {
-               return get_children_by_type (Api.NodeType.DELEGATE);
+               return get_children_by_type (NodeType.DELEGATE);
        }
 
        public void visit_delegates (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.DELEGATE, doclet);
+               accept_children_by_type (NodeType.DELEGATE, doclet);
        }
 }
 
index 86fd629b3c02a499ba8a0cd22ff4cad478f3f319..dd44f3b30901b68b657fa4dc0713dbabaafcf91c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,8 +20,8 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Enum : Api.TypeSymbolNode, MethodHandler {
-       public Enum (Vala.Enum symbol, Api.Node parent) {
+public class Valadoc.Api.Enum : TypeSymbolNode, MethodHandler {
+       public Enum (Vala.Enum symbol, Node parent) {
                base (symbol, parent);
                this.venum = symbol;
        }
@@ -32,18 +32,18 @@ public class Valadoc.Enum : Api.TypeSymbolNode, MethodHandler {
 
        // rename: get_enum_value_list
        public Collection<EnumValue> get_enum_values () {
-               return get_children_by_type (Api.NodeType.ENUM_VALUE);
+               return get_children_by_type (NodeType.ENUM_VALUE);
        }
 
        public void visit_enum_values (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.ENUM_VALUE, doclet);
+               accept_children_by_type (NodeType.ENUM_VALUE, doclet);
        }
 
        public void visit (Doclet doclet) {
                doclet.visit_enum (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.ENUM; } }
+       public override NodeType node_type { get { return NodeType.ENUM; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
@@ -52,7 +52,7 @@ public class Valadoc.Enum : Api.TypeSymbolNode, MethodHandler {
        private Vala.Enum venum;
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_keyword (get_accessibility_modifier ())
                        .append_keyword ("enum")
                        .append_symbol (this)
index 65ba3bc51cb976b6fba96f1ba38c7196fdaa4110..a62a4aa0446046b3216e99e93590ce53de35bf39 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.EnumHandler : Api.Node {
+public interface Valadoc.Api.EnumHandler : Node {
        public Collection<Enum> get_enum_list () {
-               return get_children_by_type (Api.NodeType.ENUM);
+               return get_children_by_type (NodeType.ENUM);
        }
 
        public void visit_enums (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.ENUM, doclet);
+               accept_children_by_type (NodeType.ENUM, doclet);
        }
 }
 
index 5d40eee397eb45bb3794ae7139681b1bcfbb21bc..c3860b84b02608bb590494ccb7839031ca99a1e7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.EnumValue: Api.SymbolNode {
+public class Valadoc.Api.EnumValue: SymbolNode {
        private Vala.EnumValue venval;
 
-       public EnumValue (Vala.EnumValue symbol, Api.Node parent) {
+       public EnumValue (Vala.EnumValue symbol, Node parent) {
                base (symbol, parent);
                this.venval = symbol;
        }
@@ -49,14 +49,14 @@ public class Valadoc.EnumValue: Api.SymbolNode {
                doclet.visit_enum_value (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.ENUM_VALUE; } }
+       public override NodeType node_type { get { return NodeType.ENUM_VALUE; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_symbol (this)
                        .append ("=")
                        .append (this.venval.value.to_string ())
index 63a701af82fe02d3f3a86b7436ee8569dde3d406..443cda34faf37cab2ce8f001554907c7cd93d2d2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.ErrorCode : Api.TypeSymbolNode {
+public class Valadoc.Api.ErrorCode : TypeSymbolNode {
        private Vala.ErrorCode verrcode;
 
-       public ErrorCode (Vala.ErrorCode symbol, Api.Node parent) {
+       public ErrorCode (Vala.ErrorCode symbol, Node parent) {
                base (symbol, parent);
                this.verrcode = symbol;
        }
@@ -40,14 +40,14 @@ public class Valadoc.ErrorCode : Api.TypeSymbolNode {
                doclet.visit_error_code (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.ERROR_CODE; } }
+       public override NodeType node_type { get { return NodeType.ERROR_CODE; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_symbol (this)
                        .get ();
        }
index 8af78913a01596b849aacecd9b7732657cea32e5..cfcde52c778a0529800abc2772fb182bdd2e1a0f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -21,10 +21,10 @@ using Gee;
 using Valadoc.Content;
 
 
-public class Valadoc.ErrorDomain : Api.TypeSymbolNode, MethodHandler {
+public class Valadoc.Api.ErrorDomain : TypeSymbolNode, MethodHandler {
        private Vala.ErrorDomain verrdom;
 
-       public ErrorDomain (Vala.ErrorDomain symbol, Api.Node parent) {
+       public ErrorDomain (Vala.ErrorDomain symbol, Node parent) {
                base (symbol, parent);
                this.verrdom = symbol;
        }
@@ -34,25 +34,25 @@ public class Valadoc.ErrorDomain : Api.TypeSymbolNode, MethodHandler {
        }
 
        public void visit_error_codes (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.ERROR_CODE, doclet);
+               accept_children_by_type (NodeType.ERROR_CODE, doclet);
        }
 
        public Collection<ErrorCode> get_error_code_list () {
-               return get_children_by_type (Api.NodeType.ERROR_CODE);
+               return get_children_by_type (NodeType.ERROR_CODE);
        }
 
        public void visit (Doclet doclet) {
                doclet.visit_error_domain (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.ERROR_DOMAIN; } }
+       public override NodeType node_type { get { return NodeType.ERROR_DOMAIN; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_keyword (get_accessibility_modifier ())
                        .append_keyword ("errordomain")
                        .append_symbol (this)
index 39ed4492477cff70904fcae2a6099ae4c58ca9f8..d1cff915405ab7b7582f261b6144ec5262b8bc52 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.ErrorDomainHandler : Api.Node {
+public interface Valadoc.Api.ErrorDomainHandler : Node {
        public Collection<ErrorDomain> get_error_domain_list () {
-               return get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+               return get_children_by_type (NodeType.ERROR_DOMAIN);
        }
 
        public void visit_error_domains (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.ERROR_DOMAIN, doclet);
+               accept_children_by_type (NodeType.ERROR_DOMAIN, doclet);
        }
 }
index bb02a1086d146f908c317caab18dce164efd50ad..9f24bd9888812d6ce625ffaa9fd183ba3ec07610 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -21,10 +21,10 @@ using Gee;
 
 
 // rename to ExceptionListHandler
-public interface Valadoc.ExceptionHandler : Api.Node {
+public interface Valadoc.Api.ExceptionHandler : Node {
 
        public Collection<Api.Node> get_error_domains () {
-               return get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+               return get_children_by_type (NodeType.ERROR_DOMAIN);
        }
 
        public void add_exception_list (Tree root, Vala.Collection<Vala.DataType> vexceptions) {
index a1443b875117cc82cba48c0786145736e7cc88f9..3b25b642a053c72bf57b1e7bd0ac3c812298ff39 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Field : Api.MemberNode, ReturnTypeHandler {
+public class Valadoc.Api.Field : MemberNode, ReturnTypeHandler {
        private Vala.Field vfield;
 
-       public Field (Vala.Field symbol, Api.Node parent) {
+       public Field (Vala.Field symbol, Node parent) {
                base (symbol, parent);
                this.vfield = symbol;
 
@@ -63,7 +63,7 @@ public class Valadoc.Field : Api.MemberNode, ReturnTypeHandler {
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                if (is_static) {
@@ -82,7 +82,7 @@ public class Valadoc.Field : Api.MemberNode, ReturnTypeHandler {
                doclet.visit_field (this, parent);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.FIELD; } }
+       public override NodeType node_type { get { return NodeType.FIELD; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet, (FieldHandler) parent);
index 669c89147d75dd7a9f72e8cb9092d36c8264439f..c599566c48c592faf165f9d6b2398823e831acd2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.FieldHandler : Api.Node {
+public interface Valadoc.Api.FieldHandler : Node {
        public Collection<Field> get_field_list () {
-               return get_children_by_type (Api.NodeType.FIELD);
+               return get_children_by_type (NodeType.FIELD);
        }
 
        public void visit_fields (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.FIELD, doclet);
+               accept_children_by_type (NodeType.FIELD, doclet);
        }
 }
index 130dab44d7ebd9862007b91f1e3c8dee825fb610..f9aca986898985bb0585bd680ad7a6c2c355d2dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.FormalParameter : Api.SymbolNode, ReturnTypeHandler {
+public class Valadoc.Api.FormalParameter : SymbolNode, ReturnTypeHandler {
        private Vala.FormalParameter vformalparam;
 
-       public FormalParameter (Vala.FormalParameter symbol, Api.Node parent) {
+       public FormalParameter (Vala.FormalParameter symbol, Node parent) {
                base (symbol, parent);
                this.vformalparam = symbol;
 
@@ -60,7 +60,7 @@ public class Valadoc.FormalParameter : Api.SymbolNode, ReturnTypeHandler {
                }
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.FORMAL_PARAMETER; } }
+       public override NodeType node_type { get { return NodeType.FORMAL_PARAMETER; } }
 
        public override void accept (Doclet doclet) {
        }
@@ -76,7 +76,7 @@ public class Valadoc.FormalParameter : Api.SymbolNode, ReturnTypeHandler {
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                if (ellipsis) {
                        signature.append ("...");
index bfe5fc805a96734cddae54b96d8db121fc7473e1..e43b4c92ca8155b97ba52aa4fe6e70f3d1623c23 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,8 +20,8 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Interface : Api.TypeSymbolNode, SignalHandler, PropertyHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler, MethodHandler, DelegateHandler, EnumHandler, StructHandler, ClassHandler {
-       public Interface (Vala.Interface symbol, Api.Node parent) {
+public class Valadoc.Api.Interface : TypeSymbolNode, SignalHandler, PropertyHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler, MethodHandler, DelegateHandler, EnumHandler, StructHandler, ClassHandler {
+       public Interface (Vala.Interface symbol, Node parent) {
                base (symbol, parent);
                this.vinterface = symbol;
        }
@@ -47,7 +47,7 @@ public class Valadoc.Interface : Api.TypeSymbolNode, SignalHandler, PropertyHand
                doclet.visit_interface (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.INTERFACE; } }
+       public override NodeType node_type { get { return NodeType.INTERFACE; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
@@ -78,17 +78,17 @@ public class Valadoc.Interface : Api.TypeSymbolNode, SignalHandler, PropertyHand
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                signature.append_keyword ("interface");
                signature.append_symbol (this);
 
-               var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+               var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
                if (type_parameters.size > 0) {
                        signature.append ("<", false);
                        bool first = true;
-                       foreach (Api.Item param in type_parameters) {
+                       foreach (Item param in type_parameters) {
                                if (!first) {
                                        signature.append (",", false);
                                }
@@ -111,7 +111,7 @@ public class Valadoc.Interface : Api.TypeSymbolNode, SignalHandler, PropertyHand
                                signature.append (":");
                        }
 
-                       foreach (Api.Item implemented_interface in interfaces) {
+                       foreach (Item implemented_interface in interfaces) {
                                if (!first) {
                                        signature.append (",", false);
                                }
index 0f13e9a5b31c1722c40a8ddb5ffe6c934ad7af91..695e7821dffd9140cc432f2e96ac16ceb22f7ea5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.InterfaceHandler : Api.Node {
+public interface Valadoc.Api.InterfaceHandler : Node {
        public Collection<Interface> get_interface_list () {
-               return get_children_by_type (Api.NodeType.INTERFACE);
+               return get_children_by_type (NodeType.INTERFACE);
        }
 
        public void visit_interfaces (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.INTERFACE, doclet);
+               accept_children_by_type (NodeType.INTERFACE, doclet);
        }
 }
index d902315adbde38c7d70b1306f38b6840c8e1d624..61be9a18248cb6fb4da698eee1c7b3c8643a6108 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHandler, TemplateParameterListHandler, ReturnTypeHandler {
+public class Valadoc.Api.Method : MemberNode, ParameterListHandler, ExceptionHandler, TemplateParameterListHandler, ReturnTypeHandler {
        private Vala.Method vmethod;
 
-       public Method (Vala.Method symbol, Api.Node parent) {
+       public Method (Vala.Method symbol, Node parent) {
                base (symbol, parent);
                this.vmethod = symbol;
 
@@ -94,9 +94,9 @@ public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHan
                owned get {
                        if (this.is_constructor) {
                                if (this.vmethod.name == ".new") {
-                                       return ((Api.Node)this.parent).name;
+                                       return ((Node)this.parent).name;
                                } else {
-                                       return ((Api.Node)this.parent).name + "." + this.vmethod.name;
+                                       return ((Node)this.parent).name + "." + this.vmethod.name;
                                }
                        }
                        else {
@@ -128,7 +128,7 @@ public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHan
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                if (is_static) {
@@ -150,11 +150,11 @@ public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHan
                signature.append_content (type_reference.signature);
                signature.append_symbol (this);
 
-               var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+               var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
                if (type_parameters.size > 0) {
                        signature.append ("<", false);
                        bool first = true;
-                       foreach (Api.Item param in type_parameters) {
+                       foreach (Item param in type_parameters) {
                                if (!first) {
                                        signature.append (",", false);
                                }
@@ -167,7 +167,7 @@ public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHan
                signature.append ("(");
 
                bool first = true;
-               foreach (Api.Node param in get_children_by_type (Api.NodeType.FORMAL_PARAMETER)) {
+               foreach (Node param in get_children_by_type (NodeType.FORMAL_PARAMETER)) {
                        if (!first) {
                                signature.append (",", false);
                        }
@@ -177,11 +177,11 @@ public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHan
 
                signature.append (")", false);
 
-               var exceptions = get_children_by_type (Api.NodeType.ERROR_DOMAIN);
+               var exceptions = get_children_by_type (NodeType.ERROR_DOMAIN);
                if (exceptions.size > 0) {
                        signature.append_keyword ("throws");
 
-                       foreach (Api.Node param in exceptions) {
+                       foreach (Node param in exceptions) {
                                if (!first) {
                                        signature.append (",", false);
                                }
@@ -193,13 +193,13 @@ public class Valadoc.Method : Api.MemberNode, ParameterListHandler, ExceptionHan
                return signature.get ();
        }
 
-       public void visit (Doclet doclet, Valadoc.MethodHandler in_type) {
+       public void visit (Doclet doclet, Valadoc.Api.MethodHandler in_type) {
                doclet.visit_method (this, in_type);
        }
 
-       public override Api.NodeType node_type {
+       public override NodeType node_type {
                get {
-                       return is_constructor ? Api.NodeType.CREATION_METHOD : Api.NodeType.METHOD;
+                       return is_constructor ? NodeType.CREATION_METHOD : NodeType.METHOD;
                }
        }
 
index fba4a6488de0c9aa25c6bf85a134d628b7f8f8ff..b7b23d95e3ab2c3e09ef0f5b2d6c1f4a5ae169e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.MethodHandler : Api.Node {
+public interface Valadoc.Api.MethodHandler : Node {
        public void visit_methods (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.METHOD, doclet);
+               accept_children_by_type (NodeType.METHOD, doclet);
        }
 
        public Collection<Method> get_method_list () {
-               return get_children_by_type (Api.NodeType.METHOD);
+               return get_children_by_type (NodeType.METHOD);
        }
 }
 
index 256c51ee5958be86f8e6860ed758136bffb02f88..457671c95b69453c4ac1de2ac45be3073ac7f627 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Namespace : Api.SymbolNode, MethodHandler, FieldHandler, NamespaceHandler, ErrorDomainHandler,
+public class Valadoc.Api.Namespace : SymbolNode, MethodHandler, FieldHandler, NamespaceHandler, ErrorDomainHandler,
                                  EnumHandler, ClassHandler, StructHandler, InterfaceHandler,
                                  DelegateHandler, ConstantHandler
 {
@@ -50,7 +50,7 @@ public class Valadoc.Namespace : Api.SymbolNode, MethodHandler, FieldHandler, Na
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_keyword (get_accessibility_modifier ())
                        .append_keyword ("namespace")
                        .append_symbol (this)
@@ -61,7 +61,7 @@ public class Valadoc.Namespace : Api.SymbolNode, MethodHandler, FieldHandler, Na
                doclet.visit_namespace (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.NAMESPACE; } }
+       public override NodeType node_type { get { return NodeType.NAMESPACE; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
index a1759860080ab971f093aef22397714f9760fcd5..34796abacd787c6fdeba649b9f2fe49f70da63b7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.NamespaceHandler : Api.Node {
+public interface Valadoc.Api.NamespaceHandler : Node {
        public Collection<Namespace> get_namespace_list (bool filtered = true) {
-               return get_children_by_type (Api.NodeType.NAMESPACE, filtered);
+               return get_children_by_type (NodeType.NAMESPACE, filtered);
        }
 
        public void visit_namespaces (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.NAMESPACE, doclet);
+               accept_children_by_type (NodeType.NAMESPACE, doclet);
        }
 
        private ArrayList<Vala.Namespace> create_parent_vnamespace_list (Vala.Symbol vsymbol) {
index 91542c906fe8fd7ee6258beb75f4d07a40a3e44c..5b2ba70d3246530642123ac07d17312204c3d680 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Package : Api.Node, NamespaceHandler {
+public class Valadoc.Api.Package : Node, NamespaceHandler {
        private ArrayList<Vala.SourceFile> vfiles = new ArrayList<Vala.SourceFile> ();
 
        internal void add_file (Vala.SourceFile vfile) {
@@ -103,14 +103,14 @@ public class Valadoc.Package : Api.Node, NamespaceHandler {
                doclet.visit_package ( this );
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.PACKAGE; } }
+       public override NodeType node_type { get { return NodeType.PACKAGE; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_keyword ("package")
                        .append (name)
                        .get ();
index 4d0660c4cb336d21f53b723277e573dd0aacb627..5b5e55bd4f54e4cf27de7221d767177b720f1d4a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -21,13 +21,13 @@ using Gee;
 
 
 // TODO Rename FormalParameters
-public interface Valadoc.ParameterListHandler : Api.Node {
+public interface Valadoc.Api.ParameterListHandler : Node {
        public Gee.List<FormalParameter> param_list {
                owned get { return get_parameter_list (); }
        }
 
        public Gee.List<FormalParameter> get_parameter_list () {
-               return (Gee.List<FormalParameter>) get_children_by_type (Api.NodeType.FORMAL_PARAMETER);
+               return (Gee.List<FormalParameter>) get_children_by_type (NodeType.FORMAL_PARAMETER);
        }
 }
 
index b1f0132b17071b47f0a7df7f01afee04ca4ce163..3fca05ef374e8beccf4ced438a64db5ce9fb6d48 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Pointer : Api.Item {
+public class Valadoc.Api.Pointer : Item {
        private Vala.PointerType vtype;
 
-       public Api.Item data_type {
+       public Item data_type {
                private set;
                get;
        }
 
-       public Pointer (Vala.PointerType vtyperef, Api.Item parent) {
+       public Pointer (Vala.PointerType vtyperef, Item parent) {
                this.vtype = vtyperef;
                this.parent = parent;
 
@@ -56,7 +56,7 @@ public class Valadoc.Pointer : Api.Item {
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append_content (data_type.signature)
                        .append ("*", false)
                        .get ();
index 13870ccefa35038e3ef3c3d10c6172bfa97a8b05..41dce6fbbe2621940f8ae7ab70243c007b7b5304 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Property : Api.MemberNode, ReturnTypeHandler {
+public class Valadoc.Api.Property : MemberNode, ReturnTypeHandler {
        private Vala.Property vproperty;
 
-       public Property (Vala.Property symbol, Api.Node parent) {
+       public Property (Vala.Property symbol, Node parent) {
                base (symbol, parent);
 
                this.vproperty = symbol;
@@ -107,7 +107,7 @@ public class Valadoc.Property : Api.MemberNode, ReturnTypeHandler {
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                if (is_abstract) {
@@ -139,7 +139,7 @@ public class Valadoc.Property : Api.MemberNode, ReturnTypeHandler {
                doclet.visit_property (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.PROPERTY; } }
+       public override NodeType node_type { get { return NodeType.PROPERTY; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
index 9aa1b51292f960ce7ed295042e6335ad18cc5501..76043beced5b76bdc52f5f129821b35ac8b72b36 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.PropertyAccessor : Api.SymbolNode {
+public class Valadoc.Api.PropertyAccessor : SymbolNode {
        private Vala.PropertyAccessor vpropacc;
 
        public PropertyAccessor (Vala.PropertyAccessor symbol, Property parent) {
@@ -28,7 +28,7 @@ public class Valadoc.PropertyAccessor : Api.SymbolNode {
                this.vpropacc = symbol;
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.PROPERTY_ACCESSOR; } }
+       public override NodeType node_type { get { return NodeType.PROPERTY_ACCESSOR; } }
 
        public override void accept (Doclet doclet) {
        }
@@ -58,7 +58,7 @@ public class Valadoc.PropertyAccessor : Api.SymbolNode {
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                if (!is_public) {
                        signature.append_keyword (get_accessibility_modifier ());
index e744feb794dbf4c76063b81cf06a2260ba3ad6d9..e81d88cfc17e25b5928e0cb8db2ca7886f27c938 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 
 
-public interface Valadoc.PropertyHandler : Api.Node {
+public interface Valadoc.Api.PropertyHandler : Node {
        protected bool is_overwritten_property (Property prop) {
                foreach (Property p in get_property_list ()) {
                        if (p.parent != this) {
@@ -37,11 +37,11 @@ public interface Valadoc.PropertyHandler : Api.Node {
        }
 
        public Collection<Property> get_property_list () {
-               return get_children_by_type (Api.NodeType.PROPERTY);
+               return get_children_by_type (NodeType.PROPERTY);
        }
 
        public void visit_properties (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.PROPERTY, doclet);
+               accept_children_by_type (NodeType.PROPERTY, doclet);
        }
 }
 
index c21a9c0c70cc39b69f8b30bc116e7597656526e9..5180fb66121bae4fa29a7ba9ad8f84d91b4c14f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 
 
-public interface Valadoc.ReturnTypeHandler : Api.Item {
+public interface Valadoc.Api.ReturnTypeHandler : Item {
        public abstract TypeReference? type_reference {
                protected set;
                get;
index 0559ab4295492e59c55e5c7e363a23b55b2d7a8a..63a65cc1ff410afa7ed4c5de91a30c6ebf99e267 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Signal : Api.MemberNode, ParameterListHandler, ReturnTypeHandler {
+public class Valadoc.Api.Signal : MemberNode, ParameterListHandler, ReturnTypeHandler {
        private Vala.Signal vsignal;
 
-       public Signal (Vala.Signal symbol, Api.Node parent) {
+       public Signal (Vala.Signal symbol, Node parent) {
                base (symbol, parent);
 
                this.vsignal = symbol;
@@ -54,7 +54,7 @@ public class Valadoc.Signal : Api.MemberNode, ParameterListHandler, ReturnTypeHa
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                if (is_virtual) {
@@ -66,7 +66,7 @@ public class Valadoc.Signal : Api.MemberNode, ParameterListHandler, ReturnTypeHa
                signature.append ("(");
 
                bool first = true;
-               foreach (Api.Node param in get_children_by_type (Api.NodeType.FORMAL_PARAMETER)) {
+               foreach (Node param in get_children_by_type (NodeType.FORMAL_PARAMETER)) {
                        if (!first) {
                                signature.append (",", false);
                        }
@@ -83,7 +83,7 @@ public class Valadoc.Signal : Api.MemberNode, ParameterListHandler, ReturnTypeHa
                doclet.visit_signal (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.SIGNAL; } }
+       public override NodeType node_type { get { return NodeType.SIGNAL; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
index 5ac19055772854cf0144a40a1f80142520b150c8..013519f2b93970293a8251104e344db0353096c2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.SignalHandler : Api.Node {
+public interface Valadoc.Api.SignalHandler : Node {
        public void visit_signals (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.SIGNAL, doclet);
+               accept_children_by_type (NodeType.SIGNAL, doclet);
        }
 
        public Collection<Signal> get_signal_list () {
-               return get_children_by_type (Api.NodeType.SIGNAL);
+               return get_children_by_type (NodeType.SIGNAL);
        }
 }
index 1b5e13edd7ff25849085b963d6aa7b96cee7c887..63a49304e9a98c4b83ddd4a94fdea2a5502538ce 100644 (file)
@@ -1,6 +1,6 @@
 /* signaturebuilder.vala
  *
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
index 828547c8986e51ea6b023bbd7d537bf1d798b4ac..30a6018844c3d92e2cd034a6fbc88490516a4781 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.Struct : Api.TypeSymbolNode, MethodHandler, ConstructionMethodHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler {
+public class Valadoc.Api.Struct : TypeSymbolNode, MethodHandler, ConstructionMethodHandler, FieldHandler, ConstantHandler, TemplateParameterListHandler {
        private Vala.Struct vstruct;
 
-       public Struct (Vala.Struct symbol, Api.Node parent) {
+       public Struct (Vala.Struct symbol, Node parent) {
                base (symbol, parent);
                this.vstruct = symbol;
        }
@@ -41,7 +41,7 @@ public class Valadoc.Struct : Api.TypeSymbolNode, MethodHandler, ConstructionMet
                doclet.visit_struct (this);
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.STRUCT; } }
+       public override NodeType node_type { get { return NodeType.STRUCT; } }
 
        public override void accept (Doclet doclet) {
                visit (doclet);
@@ -63,17 +63,17 @@ public class Valadoc.Struct : Api.TypeSymbolNode, MethodHandler, ConstructionMet
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                signature.append_keyword (get_accessibility_modifier ());
                signature.append_keyword ("struct");
                signature.append_symbol (this);
 
-               var type_parameters = get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+               var type_parameters = get_children_by_type (NodeType.TYPE_PARAMETER, false);
                if (type_parameters.size > 0) {
                        signature.append ("<", false);
                        bool first = true;
-                       foreach (Api.Item param in type_parameters) {
+                       foreach (Item param in type_parameters) {
                                if (!first) {
                                        signature.append (",", false);
                                }
index 393a4a0cef6c774744d9fa06e5eba3eeddfcd445..13e7d51d955329ec070436def60737677b889fd5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 
 
-public interface Valadoc.StructHandler : Api.Node {
+public interface Valadoc.Api.StructHandler : Node {
        public Collection<Struct> get_struct_list () {
-               return get_children_by_type (Api.NodeType.STRUCT);
+               return get_children_by_type (NodeType.STRUCT);
        }
 
        public void visit_structs (Doclet doclet) {
-               accept_children_by_type (Api.NodeType.STRUCT, doclet);
+               accept_children_by_type (NodeType.STRUCT, doclet);
        }
 }
index 714d2c41f7d567e48ec15e6db679ac92196ef647..206aaa95c9003fc6f61c2429f9839d319938495e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
 using Gee;
 
 
-public interface Valadoc.SymbolAccessibility {
+public interface Valadoc.Api.SymbolAccessibility {
 
        public abstract bool is_public { get; }
 
index b6036f7ce9ed490ab7e2b12e812daea0d6836df8..d4f496f37593516ec9d21db87e1589cbdeba0e64 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,9 +20,9 @@
 using Gee;
 
 
-public interface Valadoc.TemplateParameterListHandler : Api.Node {
+public interface Valadoc.Api.TemplateParameterListHandler : Node {
        public Collection<TypeParameter> get_template_param_list () {
-               return get_children_by_type (Api.NodeType.TYPE_PARAMETER, false);
+               return get_children_by_type (NodeType.TYPE_PARAMETER, false);
        }
 }
 
index f204331b0dfe0aea519fa7d84cff66d22a558197..c17bf9ec5d815f0500718ff148e57368c3a14ddb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -20,9 +20,9 @@
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.TypeParameter : Api.SymbolNode, ReturnTypeHandler {
+public class Valadoc.Api.TypeParameter : SymbolNode, ReturnTypeHandler {
 
-       public TypeParameter (Vala.TypeParameter symbol, Api.Node parent) {
+       public TypeParameter (Vala.TypeParameter symbol, Node parent) {
                base (symbol, parent);
        }
 
@@ -32,12 +32,12 @@ public class Valadoc.TypeParameter : Api.SymbolNode, ReturnTypeHandler {
        }
 
        protected override Inline build_signature () {
-               return new Api.SignatureBuilder ()
+               return new SignatureBuilder ()
                        .append (name)
                        .get ();
        }
 
-       public override Api.NodeType node_type { get { return Api.NodeType.TYPE_PARAMETER; } }
+       public override NodeType node_type { get { return NodeType.TYPE_PARAMETER; } }
 
        public override void accept (Doclet doclet) {
        }
index 10f3d68df65c7b531b6b4d4a7588950ba77b7409..77490a4780010141e18bf730832a0688a794ba88 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
 using Gee;
 using Valadoc.Content;
 
-public class Valadoc.TypeReference : Api.Item {
+public class Valadoc.Api.TypeReference : Item {
        private ArrayList<TypeReference> type_arguments = new ArrayList<TypeReference> ();
        private Vala.DataType? vtyperef;
 
-       public TypeReference (Vala.DataType? vtyperef, Api.Item parent) {
+       public TypeReference (Vala.DataType? vtyperef, Item parent) {
                this.vtyperef = vtyperef;
                this.parent = parent;
        }
@@ -41,7 +41,7 @@ public class Valadoc.TypeReference : Api.Item {
                }
        }
 
-       public Api.Item? data_type {
+       public Item? data_type {
                private set;
                get;
        }
@@ -208,7 +208,7 @@ public class Valadoc.TypeReference : Api.Item {
        }
 
        protected override Inline build_signature () {
-               var signature = new Api.SignatureBuilder ();
+               var signature = new SignatureBuilder ();
 
                if (is_dynamic) {
                        signature.append_keyword ("dynamic");
@@ -224,8 +224,8 @@ public class Valadoc.TypeReference : Api.Item {
 
                if (data_type == null) {
                        signature.append_keyword ("void");
-               } else if (data_type is Api.SymbolNode) {
-                       signature.append_type ((Api.SymbolNode) data_type);
+               } else if (data_type is SymbolNode) {
+                       signature.append_type ((SymbolNode) data_type);
                } else {
                        signature.append_content (data_type.signature);
                }
@@ -233,7 +233,7 @@ public class Valadoc.TypeReference : Api.Item {
                if (type_arguments.size > 0) {
                        signature.append ("<", false);
                        bool first = true;
-                       foreach (Api.Item param in type_arguments) {
+                       foreach (Item param in type_arguments) {
                                if (!first) {
                                        signature.append (",", false);
                                }
index cd002ce8b72ee565988d43b41223354383a3d742..edca2599f566798b1c3ae41fdf5862f20d2da48f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Valadoc - a documentation tool for vala.
+ * Valadoc.Api.- a documentation tool for vala.
  * Copyright (C) 2008 Florian Brosch
  * 
  * This program is free software; you can redistribute it and/or
@@ -21,7 +21,7 @@ using Gee;
 
 
 // Rename to Browsable
-public interface Valadoc.Visitable : Api.Item {
+public interface Valadoc.Api.Visitable : Item {
 
        // Rename to is_browsable
        public abstract bool is_visitor_accessible (Settings settings);
index 76c455509cf2c7f89399e785549468ee3feb7824..9efb6a79a1eef0c6217838f22917cc4c6fe0fecc 100755 (executable)
@@ -36,7 +36,7 @@ public abstract class Valadoc.Content.BlockContent : ContentElement {
        public override void configure (Settings settings, ResourceLocator locator) {
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                foreach (Block element in _content) {
                        element.check (api_root, container, reporter);
                }
index 0c4d40ddf1b38b201fcd68348577e153124783d6..883018756c7308d9877271b320d8c9ce5384b599 100755 (executable)
@@ -37,7 +37,7 @@ public class Valadoc.Content.Comment : BlockContent {
        public override void configure (Settings settings, ResourceLocator locator) {
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                base.check (api_root, container, reporter);
 
                foreach (Taglet element in _taglets) {
index a4c7e80846d48739cafe6f6c0235cada23cfb479..9dad4ca31ba5504adc1d9cfe4dee5f593057c389 100755 (executable)
@@ -29,7 +29,7 @@ public abstract class Valadoc.Content.ContentElement : Object {
        public virtual void configure (Settings settings, ResourceLocator locator) {
        }
 
-       public abstract void check (Tree api_root, Api.Node? container, ErrorReporter reporter);
+       public abstract void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter);
 
        public abstract void accept (ContentVisitor visitor);
 
index 74b64f01e42bbfae252395f1d35bde915b247444..23b1d5d4a86d7e1ef2f7ce8127b34e010a9e870f 100755 (executable)
@@ -42,7 +42,7 @@ public class Valadoc.Content.Embedded : ContentElement, Inline, StyleAttributes
                _locator = locator;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check the image exists if it a local resource
        }
 
index 7cd323675661294d023ab05cb7b23aabbc5ae821..f50df5e65b40057a8f4b199e0cc6a182b918c285 100755 (executable)
@@ -32,7 +32,7 @@ public class Valadoc.Content.Headline : Block, InlineContent {
                _level = 0;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // TODO report error if level == 0 ?
 
                // Check inline content
index 84f6b7271b5a8f375eda1b33dfd50d279a518238..cb707fdbf211ca2b5a0e703f494113025e75df44 100755 (executable)
@@ -36,7 +36,7 @@ public abstract class Valadoc.Content.InlineContent : ContentElement {
        internal InlineContent () {
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                foreach (Inline element in _content) {
                        element.check (api_root, container, reporter);
                }
index e0052b92930ae3cef611e0c45e8dd1abc057c0ae..aa75cb9b3d042cf8dd4102cf91b4aaf9f99e6b00 100755 (executable)
@@ -49,7 +49,7 @@ public abstract class Valadoc.Content.InlineTaglet : ContentElement, Taglet, Inl
                this.locator = locator;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                ContentElement element = get_content ();
                element.check (api_root, container, reporter);
        }
index 061f53e01fba8e0ad3e226b1424c6ea45b0d70a4..f26fb97866b34b0dcbdbdcc2046ae1fcf9e95d93 100755 (executable)
@@ -35,7 +35,7 @@ public class Valadoc.Content.Link : ContentElement, Inline {
        public override void configure (Settings settings, ResourceLocator locator) {
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
        }
 
        public override void accept (ContentVisitor visitor) {
index c92f8648932bd113d5eec6dae8381471bdb3b09f..9b63a1bd5d131b7c8ed013c4242e93389071ae8a 100755 (executable)
@@ -34,7 +34,7 @@ public class Valadoc.Content.List : ContentElement, Block {
                _items = new ArrayList<ListItem> ();
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check the list consistency in terms of successive item levels ?
 
                // Check individual list items
index 89490e556b560ebfef87dd0f492a7538e36c24ad..947e813ce7b88d57b029c119bf4af5912c90a549 100755 (executable)
@@ -44,7 +44,7 @@ public class Valadoc.Content.ListItem : InlineContent {
                _level = 0;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // TODO report error if level == 0 ?
 
                // Check inline content
index f154b14a43806f572bbd969d2f02e539b6a0438e..5d7dbc066353e0121f35db11bf055d00bcac8a72 100755 (executable)
@@ -33,7 +33,7 @@ public class Valadoc.Content.Paragraph : InlineContent, Block, StyleAttributes {
                base ();
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check inline content
                base.check (api_root, container, reporter);
        }
index 341ed9707d66fec9f18d003217d973df58bf5f6e..a357d9ce341a27e80250ae712728b3214683a521 100755 (executable)
@@ -44,7 +44,7 @@ public class Valadoc.Content.Run : InlineContent, Inline {
                _style = style;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check inline content
                base.check (api_root, container, reporter);
        }
index 07c262fbffab66e62465c3e1655ec286d010be03..c0bb0758bd51cbb982cf1b95ca7f99d3023a1dda 100755 (executable)
@@ -39,7 +39,7 @@ public class Valadoc.Content.SourceCode : ContentElement, Block {
                _language = Language.VALA;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
        }
 
        public override void accept (ContentVisitor visitor) {
index fbed643da85dd474802c412c6f44ca51b242e5d8..afe8e0762cca8a5087a7df8f214557cfa9653e69 100755 (executable)
@@ -37,7 +37,7 @@ public class Valadoc.Content.SymbolLink : ContentElement, Inline {
        public override void configure (Settings settings, ResourceLocator locator) {
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
        }
 
        public override void accept (ContentVisitor visitor) {
index 3371faab6c6a8f2ef6d6788ce5a923f35a48e93f..ec55d2af5388c77b41072ff59d2af1b4e1ca069a 100755 (executable)
@@ -34,7 +34,7 @@ public class Valadoc.Content.Table : ContentElement, Block {
                _rows = new ArrayList<TableRow> ();
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check the table consistency in term of row/column number
 
                // Check individual rows
index 984bf57da848ab9d6337dc46750e38f3c4368b27..d84415293a514c7dd059d37efe9779a39fc23d54 100755 (executable)
@@ -37,7 +37,7 @@ public class Valadoc.Content.TableCell : InlineContent, StyleAttributes {
                _rowspan = 1;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check inline content
                base.check (api_root, container, reporter);
        }
index 86f573687a4346e90b0c4ae72daced109306c40d..0354611396c1d9eec53103598b0172bb31a7cc5d 100755 (executable)
@@ -34,7 +34,7 @@ public class Valadoc.Content.TableRow : ContentElement {
                _cells = new ArrayList<TableCell> ();
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // Check individual cells
                foreach (var cell in _cells) {
                        cell.check (api_root, container, reporter);
index 3b7d7a274e4a3f40fb78c6eca188afc363378426..406b2e0983852495f7c58941f9cf51a44359774c 100755 (executable)
@@ -37,7 +37,7 @@ public class Valadoc.Content.Text : ContentElement, Inline {
                }
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
        }
 
        public override void accept (ContentVisitor visitor) {
index 1d2c85baa56cda270111276ced7df6d8b5d0c8e5..c207c58092f96ded9b6a9f70611991a4137c8dcf 100755 (executable)
  */
 
 using Gee;
+using Valadoc.Api;
 
-
-public static delegate Type Valadoc.DocletRegisterFunction ( );
-
+public static delegate Type Valadoc.DocletRegisterFunction ();
 
 public abstract class Valadoc.Doclet : GLib.Object {
-       public abstract void initialisation (Settings settings, Tree tree);
-       public abstract void visit_package (Package pkg);
-       public abstract void visit_namespace (Namespace ns);
-       public abstract void visit_interface (Interface iface);
-       public abstract void visit_class (Class cl);
-       public abstract void visit_struct (Struct stru);
-       public abstract void visit_error_domain (ErrorDomain errdom);
-       public abstract void visit_enum (Enum en);
-       public abstract void visit_property (Property prop);
-       public abstract void visit_field (Field field, FieldHandler parent);
-       public abstract void visit_constant (Constant constant, ConstantHandler parent);
-       public abstract void visit_error_code (ErrorCode errcode);
-       public abstract void visit_enum_value (EnumValue enval);
-       public abstract void visit_delegate (Delegate del);
-       public abstract void visit_signal (Signal sig);
-       public abstract void visit_method (Method m, Valadoc.MethodHandler parent);
+       public abstract void initialisation (Settings settings, Api.Tree tree);
+       public abstract void visit_package (Api.Package pkg);
+       public abstract void visit_namespace (Api.Namespace ns);
+       public abstract void visit_interface (Api.Interface iface);
+       public abstract void visit_class (Api.Class cl);
+       public abstract void visit_struct (Api.Struct stru);
+       public abstract void visit_error_domain (Api.ErrorDomain errdom);
+       public abstract void visit_enum (Api.Enum en);
+       public abstract void visit_property (Api.Property prop);
+       public abstract void visit_field (Api.Field field, Api.FieldHandler parent);
+       public abstract void visit_constant (Api.Constant constant, Api.ConstantHandler parent);
+       public abstract void visit_error_code (Api.ErrorCode errcode);
+       public abstract void visit_enum_value (Api.EnumValue enval);
+       public abstract void visit_delegate (Api.Delegate del);
+       public abstract void visit_signal (Api.Signal sig);
+       public abstract void visit_method (Api.Method m, Api.MethodHandler parent);
 }
-
index 35d4805778f93abae5c8c359177fe52dc5357a6f..13c081459419cc3defdd690aeada1204804c3b8a 100644 (file)
@@ -27,7 +27,7 @@ using Gee;
 
 public class Valadoc.DocumentationParser : Object, ResourceLocator {
 
-       public DocumentationParser (Settings settings, ErrorReporter reporter, Tree tree, ModuleLoader modules) {
+       public DocumentationParser (Settings settings, ErrorReporter reporter, Api.Tree tree, ModuleLoader modules) {
                _settings = settings;
                _reporter = reporter;
                _tree = tree;
@@ -48,7 +48,7 @@ public class Valadoc.DocumentationParser : Object, ResourceLocator {
 
        private Settings _settings;
        private ErrorReporter _reporter;
-       private Tree _tree;
+       private Api.Tree _tree;
        private ModuleLoader _modules;
 
        private ContentFactory _factory;
index 9ae0b3d45786f7adb5c1591723f89b580bb32b00..464c55cbd476e98083a9824f49d6d9228fcc2530 100755 (executable)
@@ -19,7 +19,7 @@
 
 using Graphviz;
 using Gee;
-
+using Valadoc.Api;
 
 namespace Valadoc.Diagrams {
        // replace with .full_name
index 9ee71dd61a5d547aa7311596d9288e98954c977a..281369b1cddc62fc079dc938885f8924faf0a762 100755 (executable)
@@ -29,7 +29,7 @@ public class Valadoc.Taglets.Deprecated : InlineContent, Taglet, Block {
                return run_rule;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                base.check (api_root, container, reporter);
        }
 
index 1ed971161a1fbe17fc051a280ee9f64aa0c3549f..551408ffcb5d5cb2f52d0feb49e948e11cc5b5c0 100755 (executable)
@@ -24,7 +24,6 @@
 using Gee;
 using Valadoc.Content;
 
-
 public class Valadoc.Taglets.InheritDoc : InlineTaglet {
        private Api.Node? _inherited;
 
@@ -32,14 +31,14 @@ public class Valadoc.Taglets.InheritDoc : InlineTaglet {
                return null;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // TODO Check that the container is an override of an abstract symbol
                // Also retrieve that abstract symbol _inherited
 
-               if (container is Method) {
-                       _inherited = ((Method) container).base_method;
-               } else if (container is Property) {
-                       _inherited = ((Property) container).base_property;
+               if (container is Api.Method) {
+                       _inherited = ((Api.Method) container).base_method;
+               } else if (container is Api.Property) {
+                       _inherited = ((Api.Property) container).base_property;
                }
 
                // TODO report error if inherited is null
index f08d74c84f7ecd323484eecac021bb1de78f03ca..84630d1cc85f3d08a3fe2545b9d2735c9fed953a 100755 (executable)
@@ -36,7 +36,7 @@ public class Valadoc.Taglets.Link : InlineTaglet {
                });
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                _symbol = api_root.search_symbol_str (container, symbol_name);
                if (_symbol == null) {
                        // TODO use ContentElement's source reference
index 713bc21d72f6a81255a0f6123247f6b9b03e74a9..67491162f13b0f6917eedc8826b0f9515476f92f 100755 (executable)
@@ -36,7 +36,7 @@ public class Valadoc.Taglets.Param : InlineContent, Taglet, Block {
                });
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // TODO check for the existence of such a parameter
 
                base.check (api_root, container, reporter);
index 5e42120b451ce79e103764c7c89831b5dc65a43c..baa985b98ed2eb3f5c1914965b62f59a7b77de11 100755 (executable)
@@ -30,7 +30,7 @@ public class Valadoc.Taglets.Return : InlineContent, Taglet, Block {
                return run_rule;
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                // TODO check for the existence of a return type
 
                base.check (api_root, container, reporter);
index 82feacaf2525c8a77f0db59f67e440557891d64a..f93c05697d4cec00ab9aaac75b0a9c2c934060d3 100755 (executable)
@@ -35,7 +35,7 @@ public class Valadoc.Taglets.See : ContentElement, Taglet, Block {
                });
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                symbol = api_root.search_symbol_str (container, symbol_name);
                if (symbol == null) {
                        // TODO use ContentElement's source reference
index edcee9c8d740a2c0e14c5d3945d11dc8677bd807..32535c0f9671d52732fd83fb89218d896d6f64f1 100755 (executable)
@@ -34,7 +34,7 @@ public class Valadoc.Taglets.Since : ContentElement, Taglet, Block {
                });
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
        }
 
        public override void accept (ContentVisitor visitor) {
index 891ecbae3fdb58648a2ca50c8eb3f46d08fcbc7f..98af08619c766822ba1244fd433144e4cdc3e0c8 100755 (executable)
@@ -24,7 +24,6 @@
 using Gee;
 using Valadoc.Content;
 
-
 public class Valadoc.Taglets.Throws : InlineContent, Taglet, Block {
        public string error_domain_name { private set; get; }
        public Api.Node error_domain { private set; get; }
@@ -37,7 +36,7 @@ public class Valadoc.Taglets.Throws : InlineContent, Taglet, Block {
                });
        }
 
-       public override void check (Tree api_root, Api.Node? container, ErrorReporter reporter) {
+       public override void check (Api.Tree api_root, Api.Node? container, ErrorReporter reporter) {
                error_domain = api_root.search_symbol_str (container, error_domain_name);
                if (error_domain == null) {
                        // TODO use ContentElement's source reference
index 6d95ea1218aafcbc1e136f8f60f2e1c6964bd164..c9c17e35e593d728bb93c412deab3499c3ec9847 100755 (executable)
@@ -179,7 +179,7 @@ public class ValaDoc : Object {
                }
 
 
-               Valadoc.Tree doctree = new Valadoc.Tree (reporter, settings);
+               Valadoc.Api.Tree doctree = new Valadoc.Api.Tree (reporter, settings);
                Valadoc.DocumentationParser docparser = new Valadoc.DocumentationParser (settings, reporter, doctree, modules);
                if (reporter.errors > 0) {
                        return quit (reporter);