From: Didier 'Ptitjes Date: Fri, 16 Oct 2009 18:46:55 +0000 (+0200) Subject: Api: Move all classes to the Valadoc.Api namespace X-Git-Tag: 0.37.1~3^2~557 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed0375712e790eda355f022221032abbd747f023;p=thirdparty%2Fvala.git Api: Move all classes to the Valadoc.Api namespace --- diff --git a/src/doclets/devhelp/doclet/Makefile.am b/src/doclets/devhelp/doclet/Makefile.am index 7d4841b54..d2878995d 100644 --- a/src/doclets/devhelp/doclet/Makefile.am +++ b/src/doclets/devhelp/doclet/Makefile.am @@ -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 $@ diff --git a/src/doclets/devhelp/doclet/doclet.vala b/src/doclets/devhelp/doclet/doclet.vala index 5708b90e7..bb198ed37 100755 --- a/src/doclets/devhelp/doclet/doclet.vala +++ b/src/doclets/devhelp/doclet/doclet.vala @@ -19,11 +19,10 @@ 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 ); diff --git a/src/doclets/htm/doclet/Makefile.am b/src/doclets/htm/doclet/Makefile.am index ffe8a83f0..9817f5036 100644 --- a/src/doclets/htm/doclet/Makefile.am +++ b/src/doclets/htm/doclet/Makefile.am @@ -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 $@ diff --git a/src/doclets/htm/doclet/doclet.vala b/src/doclets/htm/doclet/doclet.vala index b3a003fa7..5ddcb662e 100755 --- a/src/doclets/htm/doclet/doclet.vala +++ b/src/doclets/htm/doclet/doclet.vala @@ -19,10 +19,9 @@ 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"); diff --git a/src/doclets/htmlhelpers/doclet/Makefile.am b/src/doclets/htmlhelpers/doclet/Makefile.am index 7eda7eabe..e1a1fdd7f 100644 --- a/src/doclets/htmlhelpers/doclet/Makefile.am +++ b/src/doclets/htmlhelpers/doclet/Makefile.am @@ -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 $@ diff --git a/src/doclets/htmlhelpers/doclet/doclet.vala b/src/doclets/htmlhelpers/doclet/doclet.vala index caf3ebcf2..c66ab4f46 100755 --- a/src/doclets/htmlhelpers/doclet/doclet.vala +++ b/src/doclets/htmlhelpers/doclet/doclet.vala @@ -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 enum_values = en.get_enum_values ( ); + Gee.Collection enum_values = en.get_enum_values ( ); file.printf ( "
    \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\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
    \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 signals = sh.get_signal_list ( ); + protected void write_navi_child_signals ( GLib.FileStream file, Api.SignalHandler sh, Api.Node? mself ) { + Gee.Collection 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 ( "
      \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 ( "\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
      \n", css_style_navigation ); this.write_navi_packages_inline ( file, tree ); file.puts ( "\t\t\t
      \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
      \n", css_style_content ); file.printf ( "\t\t\t\t

      Packages:

      \n", css_title ); file.printf ( "\t\t\t\t
      \n", css_headline_hr ); @@ -759,7 +759,7 @@ public abstract class Valadoc.Html.BasicDoclet : Valadoc.Doclet { file.puts ( "\t\t\t
      \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
      \n", css_style_content ); file.printf ( "\t\t\t\t

      %s:

      \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
      \n", css_style_content ); file.printf ( "\t\t\t\t

      %s:

      \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 enum_values = en.get_enum_values (); + Gee.Collection enum_values = en.get_enum_values (); if ( enum_values.size > 0 ) { file.printf ( "

      Enum Values:

      \n", css_title ); file.printf ( "\n", css_enum_table ); - foreach ( EnumValue enval in enum_values ) { + foreach ( Api.EnumValue enval in enum_values ) { file.puts ( "\n" ); file.printf ( "\t\n", css_enum_table_name, enval.name, enval.name ); file.printf ( "\t
      %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 signals = sh.get_signal_list (); + protected void write_child_signals ( GLib.FileStream file, Api.SignalHandler sh, Api.Node? mself ) { + Gee.Collection signals = sh.get_signal_list (); if ( signals.size > 0 ) { - file.printf ( "

      Signals:

      \n", css_title ); + file.printf ( "

      Api.Signals:

      \n", css_title ); file.printf ( "
        \n", css_inline_navigation ); - foreach ( Signal sig in signals ) { + foreach ( Api.Signal sig in signals ) { file.printf ( "\t
      • %s", 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 ( "
      • \n" ); diff --git a/src/doclets/htmlhelpers/doclet/globals.vala b/src/doclets/htmlhelpers/doclet/globals.vala index edb7cf28f..c455acd0f 100755 --- a/src/doclets/htmlhelpers/doclet/globals.vala +++ b/src/doclets/htmlhelpers/doclet/globals.vala @@ -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 ) { diff --git a/src/libvaladoc/apitree/apiitem.vala b/src/libvaladoc/apitree/apiitem.vala index 1d948114d..fa78d3112 100644 --- a/src/libvaladoc/apitree/apiitem.vala +++ b/src/libvaladoc/apitree/apiitem.vala @@ -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; } diff --git a/src/libvaladoc/apitree/apimembernode.vala b/src/libvaladoc/apitree/apimembernode.vala index 7e7aed25b..91a517086 100644 --- a/src/libvaladoc/apitree/apimembernode.vala +++ b/src/libvaladoc/apitree/apimembernode.vala @@ -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 @@ -23,10 +23,9 @@ 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); } } - diff --git a/src/libvaladoc/apitree/apinode.vala b/src/libvaladoc/apitree/apinode.vala index 8a42a4c60..af3cbf652 100644 --- a/src/libvaladoc/apitree/apinode.vala +++ b/src/libvaladoc/apitree/apinode.vala @@ -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 per_symbol_children; private Map> per_type_children; - public Node (Api.Node? parent) { + public Node (Node? parent) { this.parent = parent; per_name_children = new HashMap (); @@ -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); diff --git a/src/libvaladoc/apitree/apinodebuilder.vala b/src/libvaladoc/apitree/apinodebuilder.vala index 87b0bcf9b..a950d1193 100644 --- a/src/libvaladoc/apitree/apinodebuilder.vala +++ b/src/libvaladoc/apitree/apinodebuilder.vala @@ -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 diff --git a/src/libvaladoc/apitree/apisymbolnode.vala b/src/libvaladoc/apitree/apisymbolnode.vala index 959560ebf..3db9ca548 100644 --- a/src/libvaladoc/apitree/apisymbolnode.vala +++ b/src/libvaladoc/apitree/apisymbolnode.vala @@ -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; } diff --git a/src/libvaladoc/apitree/apitree.vala b/src/libvaladoc/apitree/apitree.vala index 246eb12a2..b398c082d 100644 --- a/src/libvaladoc/apitree/apitree.vala +++ b/src/libvaladoc/apitree/apitree.vala @@ -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 @@ -19,15 +19,13 @@ 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 packages = new ArrayList(); 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; } diff --git a/src/libvaladoc/apitree/apitypesymbolnode.vala b/src/libvaladoc/apitree/apitypesymbolnode.vala index df9a38a34..e21ebd20e 100644 --- a/src/libvaladoc/apitree/apitypesymbolnode.vala +++ b/src/libvaladoc/apitree/apitypesymbolnode.vala @@ -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); } diff --git a/src/libvaladoc/apitree/array.vala b/src/libvaladoc/apitree/array.vala index e0799dcae..69fe1feea 100644 --- a/src/libvaladoc/apitree/array.vala +++ b/src/libvaladoc/apitree/array.vala @@ -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,15 +20,15 @@ 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 (); diff --git a/src/libvaladoc/apitree/class.vala b/src/libvaladoc/apitree/class.vala index 3ce4a6279..fe30777e7 100644 --- a/src/libvaladoc/apitree/class.vala +++ b/src/libvaladoc/apitree/class.vala @@ -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,11 +20,11 @@ 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 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 (); @@ -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); } diff --git a/src/libvaladoc/apitree/classhandler.vala b/src/libvaladoc/apitree/classhandler.vala index 3aff41887..065d1122c 100644 --- a/src/libvaladoc/apitree/classhandler.vala +++ b/src/libvaladoc/apitree/classhandler.vala @@ -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 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); } } diff --git a/src/libvaladoc/apitree/constant.vala b/src/libvaladoc/apitree/constant.vala index 4332e369c..e3accae2c 100644 --- a/src/libvaladoc/apitree/constant.vala +++ b/src/libvaladoc/apitree/constant.vala @@ -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); diff --git a/src/libvaladoc/apitree/constanthandler.vala b/src/libvaladoc/apitree/constanthandler.vala index a00579aea..ab44e89c7 100644 --- a/src/libvaladoc/apitree/constanthandler.vala +++ b/src/libvaladoc/apitree/constanthandler.vala @@ -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,12 +20,12 @@ using Gee; -public interface Valadoc.ConstantHandler : Api.Node { +public interface Valadoc.Api.ConstantHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/constructionmethodhandler.vala b/src/libvaladoc/apitree/constructionmethodhandler.vala index 223c87d65..46d96eace 100644 --- a/src/libvaladoc/apitree/constructionmethodhandler.vala +++ b/src/libvaladoc/apitree/constructionmethodhandler.vala @@ -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,13 +20,13 @@ using Gee; -public interface Valadoc.ConstructionMethodHandler : Api.Node { +public interface Valadoc.Api.ConstructionMethodHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/delegate.vala b/src/libvaladoc/apitree/delegate.vala index 5b5c52941..641aad86e 100644 --- a/src/libvaladoc/apitree/delegate.vala +++ b/src/libvaladoc/apitree/delegate.vala @@ -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,10 +20,10 @@ 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); } diff --git a/src/libvaladoc/apitree/delegatehandler.vala b/src/libvaladoc/apitree/delegatehandler.vala index 1a5c774b6..f93c37712 100644 --- a/src/libvaladoc/apitree/delegatehandler.vala +++ b/src/libvaladoc/apitree/delegatehandler.vala @@ -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,13 +20,13 @@ using Gee; -public interface Valadoc.DelegateHandler : Api.Node { +public interface Valadoc.Api.DelegateHandler : Node { public Gee.Collection 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); } } diff --git a/src/libvaladoc/apitree/enum.vala b/src/libvaladoc/apitree/enum.vala index 86fd629b3..dd44f3b30 100644 --- a/src/libvaladoc/apitree/enum.vala +++ b/src/libvaladoc/apitree/enum.vala @@ -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 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) diff --git a/src/libvaladoc/apitree/enumhandler.vala b/src/libvaladoc/apitree/enumhandler.vala index 65ba3bc51..a62a4aa04 100644 --- a/src/libvaladoc/apitree/enumhandler.vala +++ b/src/libvaladoc/apitree/enumhandler.vala @@ -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,13 +20,13 @@ using Gee; -public interface Valadoc.EnumHandler : Api.Node { +public interface Valadoc.Api.EnumHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/enumvalue.vala b/src/libvaladoc/apitree/enumvalue.vala index 5d40eee39..c3860b84b 100644 --- a/src/libvaladoc/apitree/enumvalue.vala +++ b/src/libvaladoc/apitree/enumvalue.vala @@ -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,10 +20,10 @@ 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 ()) diff --git a/src/libvaladoc/apitree/errorcode.vala b/src/libvaladoc/apitree/errorcode.vala index 63a701af8..443cda34f 100644 --- a/src/libvaladoc/apitree/errorcode.vala +++ b/src/libvaladoc/apitree/errorcode.vala @@ -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,10 +20,10 @@ 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 (); } diff --git a/src/libvaladoc/apitree/errordomain.vala b/src/libvaladoc/apitree/errordomain.vala index 8af78913a..cfcde52c7 100644 --- a/src/libvaladoc/apitree/errordomain.vala +++ b/src/libvaladoc/apitree/errordomain.vala @@ -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 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) diff --git a/src/libvaladoc/apitree/errordomainhandler.vala b/src/libvaladoc/apitree/errordomainhandler.vala index 39ed44924..d1cff9154 100644 --- a/src/libvaladoc/apitree/errordomainhandler.vala +++ b/src/libvaladoc/apitree/errordomainhandler.vala @@ -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,12 +20,12 @@ using Gee; -public interface Valadoc.ErrorDomainHandler : Api.Node { +public interface Valadoc.Api.ErrorDomainHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/exceptionlisthandler.vala b/src/libvaladoc/apitree/exceptionlisthandler.vala index bb02a1086..9f24bd988 100644 --- a/src/libvaladoc/apitree/exceptionlisthandler.vala +++ b/src/libvaladoc/apitree/exceptionlisthandler.vala @@ -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 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 vexceptions) { diff --git a/src/libvaladoc/apitree/field.vala b/src/libvaladoc/apitree/field.vala index a1443b875..3b25b642a 100644 --- a/src/libvaladoc/apitree/field.vala +++ b/src/libvaladoc/apitree/field.vala @@ -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,10 +20,10 @@ 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); diff --git a/src/libvaladoc/apitree/fieldhandler.vala b/src/libvaladoc/apitree/fieldhandler.vala index 669c89147..c599566c4 100644 --- a/src/libvaladoc/apitree/fieldhandler.vala +++ b/src/libvaladoc/apitree/fieldhandler.vala @@ -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,12 +20,12 @@ using Gee; -public interface Valadoc.FieldHandler : Api.Node { +public interface Valadoc.Api.FieldHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/formalparameter.vala b/src/libvaladoc/apitree/formalparameter.vala index 130dab44d..f9aca9868 100644 --- a/src/libvaladoc/apitree/formalparameter.vala +++ b/src/libvaladoc/apitree/formalparameter.vala @@ -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,10 +20,10 @@ 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 ("..."); diff --git a/src/libvaladoc/apitree/interface.vala b/src/libvaladoc/apitree/interface.vala index bfe5fc805..e43b4c92c 100644 --- a/src/libvaladoc/apitree/interface.vala +++ b/src/libvaladoc/apitree/interface.vala @@ -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); } diff --git a/src/libvaladoc/apitree/interfacehandler.vala b/src/libvaladoc/apitree/interfacehandler.vala index 0f13e9a5b..695e7821d 100644 --- a/src/libvaladoc/apitree/interfacehandler.vala +++ b/src/libvaladoc/apitree/interfacehandler.vala @@ -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,12 +20,12 @@ using Gee; -public interface Valadoc.InterfaceHandler : Api.Node { +public interface Valadoc.Api.InterfaceHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/method.vala b/src/libvaladoc/apitree/method.vala index d902315ad..61be9a182 100644 --- a/src/libvaladoc/apitree/method.vala +++ b/src/libvaladoc/apitree/method.vala @@ -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,10 +20,10 @@ 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; } } diff --git a/src/libvaladoc/apitree/methodhandler.vala b/src/libvaladoc/apitree/methodhandler.vala index fba4a6488..b7b23d95e 100644 --- a/src/libvaladoc/apitree/methodhandler.vala +++ b/src/libvaladoc/apitree/methodhandler.vala @@ -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,13 +20,13 @@ 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 get_method_list () { - return get_children_by_type (Api.NodeType.METHOD); + return get_children_by_type (NodeType.METHOD); } } diff --git a/src/libvaladoc/apitree/namespace.vala b/src/libvaladoc/apitree/namespace.vala index 256c51ee5..457671c95 100644 --- a/src/libvaladoc/apitree/namespace.vala +++ b/src/libvaladoc/apitree/namespace.vala @@ -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); diff --git a/src/libvaladoc/apitree/namespacehandler.vala b/src/libvaladoc/apitree/namespacehandler.vala index a17598600..34796abac 100644 --- a/src/libvaladoc/apitree/namespacehandler.vala +++ b/src/libvaladoc/apitree/namespacehandler.vala @@ -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,13 +20,13 @@ using Gee; -public interface Valadoc.NamespaceHandler : Api.Node { +public interface Valadoc.Api.NamespaceHandler : Node { public Collection 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 create_parent_vnamespace_list (Vala.Symbol vsymbol) { diff --git a/src/libvaladoc/apitree/package.vala b/src/libvaladoc/apitree/package.vala index 91542c906..5b2ba70d3 100644 --- a/src/libvaladoc/apitree/package.vala +++ b/src/libvaladoc/apitree/package.vala @@ -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 vfiles = new ArrayList (); 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 (); diff --git a/src/libvaladoc/apitree/parameterlisthandler.vala b/src/libvaladoc/apitree/parameterlisthandler.vala index 4d0660c4c..5b5e55bd4 100644 --- a/src/libvaladoc/apitree/parameterlisthandler.vala +++ b/src/libvaladoc/apitree/parameterlisthandler.vala @@ -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 param_list { owned get { return get_parameter_list (); } } public Gee.List get_parameter_list () { - return (Gee.List) get_children_by_type (Api.NodeType.FORMAL_PARAMETER); + return (Gee.List) get_children_by_type (NodeType.FORMAL_PARAMETER); } } diff --git a/src/libvaladoc/apitree/pointer.vala b/src/libvaladoc/apitree/pointer.vala index b1f0132b1..3fca05ef3 100644 --- a/src/libvaladoc/apitree/pointer.vala +++ b/src/libvaladoc/apitree/pointer.vala @@ -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,15 +20,15 @@ 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 (); diff --git a/src/libvaladoc/apitree/property.vala b/src/libvaladoc/apitree/property.vala index 13870ccef..41dce6fbb 100644 --- a/src/libvaladoc/apitree/property.vala +++ b/src/libvaladoc/apitree/property.vala @@ -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,10 +20,10 @@ 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); diff --git a/src/libvaladoc/apitree/propertyaccessor.vala b/src/libvaladoc/apitree/propertyaccessor.vala index 9aa1b5129..76043bece 100644 --- a/src/libvaladoc/apitree/propertyaccessor.vala +++ b/src/libvaladoc/apitree/propertyaccessor.vala @@ -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 ()); diff --git a/src/libvaladoc/apitree/propertyhandler.vala b/src/libvaladoc/apitree/propertyhandler.vala index e744feb79..e81d88cfc 100644 --- a/src/libvaladoc/apitree/propertyhandler.vala +++ b/src/libvaladoc/apitree/propertyhandler.vala @@ -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 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); } } diff --git a/src/libvaladoc/apitree/returntypehandler.vala b/src/libvaladoc/apitree/returntypehandler.vala index c21a9c0c7..5180fb661 100644 --- a/src/libvaladoc/apitree/returntypehandler.vala +++ b/src/libvaladoc/apitree/returntypehandler.vala @@ -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; diff --git a/src/libvaladoc/apitree/signal.vala b/src/libvaladoc/apitree/signal.vala index 0559ab429..63a65cc1f 100644 --- a/src/libvaladoc/apitree/signal.vala +++ b/src/libvaladoc/apitree/signal.vala @@ -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,10 +20,10 @@ 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); diff --git a/src/libvaladoc/apitree/signalhandler.vala b/src/libvaladoc/apitree/signalhandler.vala index 5ac190557..013519f2b 100644 --- a/src/libvaladoc/apitree/signalhandler.vala +++ b/src/libvaladoc/apitree/signalhandler.vala @@ -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,12 +20,12 @@ 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 get_signal_list () { - return get_children_by_type (Api.NodeType.SIGNAL); + return get_children_by_type (NodeType.SIGNAL); } } diff --git a/src/libvaladoc/apitree/signaturebuilder.vala b/src/libvaladoc/apitree/signaturebuilder.vala index 1b5e13edd..63a49304e 100644 --- a/src/libvaladoc/apitree/signaturebuilder.vala +++ b/src/libvaladoc/apitree/signaturebuilder.vala @@ -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 diff --git a/src/libvaladoc/apitree/struct.vala b/src/libvaladoc/apitree/struct.vala index 828547c89..30a601884 100644 --- a/src/libvaladoc/apitree/struct.vala +++ b/src/libvaladoc/apitree/struct.vala @@ -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,10 +20,10 @@ 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); } diff --git a/src/libvaladoc/apitree/structhandler.vala b/src/libvaladoc/apitree/structhandler.vala index 393a4a0ce..13e7d51d9 100644 --- a/src/libvaladoc/apitree/structhandler.vala +++ b/src/libvaladoc/apitree/structhandler.vala @@ -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,12 +20,12 @@ using Gee; -public interface Valadoc.StructHandler : Api.Node { +public interface Valadoc.Api.StructHandler : Node { public Collection 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); } } diff --git a/src/libvaladoc/apitree/symbolaccessibility.vala b/src/libvaladoc/apitree/symbolaccessibility.vala index 714d2c41f..206aaa95c 100644 --- a/src/libvaladoc/apitree/symbolaccessibility.vala +++ b/src/libvaladoc/apitree/symbolaccessibility.vala @@ -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; } diff --git a/src/libvaladoc/apitree/templateparameterlisthandler.vala b/src/libvaladoc/apitree/templateparameterlisthandler.vala index b6036f7ce..d4f496f37 100644 --- a/src/libvaladoc/apitree/templateparameterlisthandler.vala +++ b/src/libvaladoc/apitree/templateparameterlisthandler.vala @@ -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 get_template_param_list () { - return get_children_by_type (Api.NodeType.TYPE_PARAMETER, false); + return get_children_by_type (NodeType.TYPE_PARAMETER, false); } } diff --git a/src/libvaladoc/apitree/typeparameter.vala b/src/libvaladoc/apitree/typeparameter.vala index f204331b0..c17bf9ec5 100644 --- a/src/libvaladoc/apitree/typeparameter.vala +++ b/src/libvaladoc/apitree/typeparameter.vala @@ -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) { } diff --git a/src/libvaladoc/apitree/typereference.vala b/src/libvaladoc/apitree/typereference.vala index 10f3d68df..77490a478 100644 --- a/src/libvaladoc/apitree/typereference.vala +++ b/src/libvaladoc/apitree/typereference.vala @@ -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,11 +20,11 @@ using Gee; using Valadoc.Content; -public class Valadoc.TypeReference : Api.Item { +public class Valadoc.Api.TypeReference : Item { private ArrayList type_arguments = new ArrayList (); 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); } diff --git a/src/libvaladoc/apitree/visitable.vala b/src/libvaladoc/apitree/visitable.vala index cd002ce8b..edca2599f 100644 --- a/src/libvaladoc/apitree/visitable.vala +++ b/src/libvaladoc/apitree/visitable.vala @@ -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); diff --git a/src/libvaladoc/content/blockcontent.vala b/src/libvaladoc/content/blockcontent.vala index 76c455509..9efb6a79a 100755 --- a/src/libvaladoc/content/blockcontent.vala +++ b/src/libvaladoc/content/blockcontent.vala @@ -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); } diff --git a/src/libvaladoc/content/comment.vala b/src/libvaladoc/content/comment.vala index 0c4d40ddf..883018756 100755 --- a/src/libvaladoc/content/comment.vala +++ b/src/libvaladoc/content/comment.vala @@ -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) { diff --git a/src/libvaladoc/content/contentelement.vala b/src/libvaladoc/content/contentelement.vala index a4c7e8084..9dad4ca31 100755 --- a/src/libvaladoc/content/contentelement.vala +++ b/src/libvaladoc/content/contentelement.vala @@ -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); diff --git a/src/libvaladoc/content/embedded.vala b/src/libvaladoc/content/embedded.vala index 74b64f01e..23b1d5d4a 100755 --- a/src/libvaladoc/content/embedded.vala +++ b/src/libvaladoc/content/embedded.vala @@ -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 } diff --git a/src/libvaladoc/content/headline.vala b/src/libvaladoc/content/headline.vala index 7cd323675..f50df5e65 100755 --- a/src/libvaladoc/content/headline.vala +++ b/src/libvaladoc/content/headline.vala @@ -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 diff --git a/src/libvaladoc/content/inlinecontent.vala b/src/libvaladoc/content/inlinecontent.vala index 84f6b7271..cb707fdbf 100755 --- a/src/libvaladoc/content/inlinecontent.vala +++ b/src/libvaladoc/content/inlinecontent.vala @@ -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); } diff --git a/src/libvaladoc/content/inlinetaglet.vala b/src/libvaladoc/content/inlinetaglet.vala index e0052b929..aa75cb9b3 100755 --- a/src/libvaladoc/content/inlinetaglet.vala +++ b/src/libvaladoc/content/inlinetaglet.vala @@ -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); } diff --git a/src/libvaladoc/content/link.vala b/src/libvaladoc/content/link.vala index 061f53e01..f26fb9786 100755 --- a/src/libvaladoc/content/link.vala +++ b/src/libvaladoc/content/link.vala @@ -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) { diff --git a/src/libvaladoc/content/list.vala b/src/libvaladoc/content/list.vala index c92f86489..9b63a1bd5 100755 --- a/src/libvaladoc/content/list.vala +++ b/src/libvaladoc/content/list.vala @@ -34,7 +34,7 @@ public class Valadoc.Content.List : ContentElement, Block { _items = new ArrayList (); } - 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 diff --git a/src/libvaladoc/content/listitem.vala b/src/libvaladoc/content/listitem.vala index 89490e556..947e813ce 100755 --- a/src/libvaladoc/content/listitem.vala +++ b/src/libvaladoc/content/listitem.vala @@ -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 diff --git a/src/libvaladoc/content/paragraph.vala b/src/libvaladoc/content/paragraph.vala index f154b14a4..5d7dbc066 100755 --- a/src/libvaladoc/content/paragraph.vala +++ b/src/libvaladoc/content/paragraph.vala @@ -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); } diff --git a/src/libvaladoc/content/run.vala b/src/libvaladoc/content/run.vala index 341ed9707..a357d9ce3 100755 --- a/src/libvaladoc/content/run.vala +++ b/src/libvaladoc/content/run.vala @@ -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); } diff --git a/src/libvaladoc/content/sourcecode.vala b/src/libvaladoc/content/sourcecode.vala index 07c262fbf..c0bb0758b 100755 --- a/src/libvaladoc/content/sourcecode.vala +++ b/src/libvaladoc/content/sourcecode.vala @@ -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) { diff --git a/src/libvaladoc/content/symbollink.vala b/src/libvaladoc/content/symbollink.vala index fbed643da..afe8e0762 100755 --- a/src/libvaladoc/content/symbollink.vala +++ b/src/libvaladoc/content/symbollink.vala @@ -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) { diff --git a/src/libvaladoc/content/table.vala b/src/libvaladoc/content/table.vala index 3371faab6..ec55d2af5 100755 --- a/src/libvaladoc/content/table.vala +++ b/src/libvaladoc/content/table.vala @@ -34,7 +34,7 @@ public class Valadoc.Content.Table : ContentElement, Block { _rows = new ArrayList (); } - 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 diff --git a/src/libvaladoc/content/tablecell.vala b/src/libvaladoc/content/tablecell.vala index 984bf57da..d84415293 100755 --- a/src/libvaladoc/content/tablecell.vala +++ b/src/libvaladoc/content/tablecell.vala @@ -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); } diff --git a/src/libvaladoc/content/tablerow.vala b/src/libvaladoc/content/tablerow.vala index 86f573687..035461139 100755 --- a/src/libvaladoc/content/tablerow.vala +++ b/src/libvaladoc/content/tablerow.vala @@ -34,7 +34,7 @@ public class Valadoc.Content.TableRow : ContentElement { _cells = new ArrayList (); } - 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); diff --git a/src/libvaladoc/content/text.vala b/src/libvaladoc/content/text.vala index 3b7d7a274..406b2e098 100755 --- a/src/libvaladoc/content/text.vala +++ b/src/libvaladoc/content/text.vala @@ -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) { diff --git a/src/libvaladoc/doclet.vala b/src/libvaladoc/doclet.vala index 1d2c85baa..c207c5809 100755 --- a/src/libvaladoc/doclet.vala +++ b/src/libvaladoc/doclet.vala @@ -18,27 +18,25 @@ */ 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); } - diff --git a/src/libvaladoc/documentation/documentationparser.vala b/src/libvaladoc/documentation/documentationparser.vala index 35d480577..13c081459 100644 --- a/src/libvaladoc/documentation/documentationparser.vala +++ b/src/libvaladoc/documentation/documentationparser.vala @@ -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; diff --git a/src/libvaladoc/drawer.vala b/src/libvaladoc/drawer.vala index 9ae0b3d45..464c55cbd 100755 --- a/src/libvaladoc/drawer.vala +++ b/src/libvaladoc/drawer.vala @@ -19,7 +19,7 @@ using Graphviz; using Gee; - +using Valadoc.Api; namespace Valadoc.Diagrams { // replace with .full_name diff --git a/src/libvaladoc/taglets/tagletdeprecated.vala b/src/libvaladoc/taglets/tagletdeprecated.vala index 9ee71dd61..281369b1c 100755 --- a/src/libvaladoc/taglets/tagletdeprecated.vala +++ b/src/libvaladoc/taglets/tagletdeprecated.vala @@ -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); } diff --git a/src/libvaladoc/taglets/tagletinheritdoc.vala b/src/libvaladoc/taglets/tagletinheritdoc.vala index 1ed971161..551408ffc 100755 --- a/src/libvaladoc/taglets/tagletinheritdoc.vala +++ b/src/libvaladoc/taglets/tagletinheritdoc.vala @@ -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 diff --git a/src/libvaladoc/taglets/tagletlink.vala b/src/libvaladoc/taglets/tagletlink.vala index f08d74c84..84630d1cc 100755 --- a/src/libvaladoc/taglets/tagletlink.vala +++ b/src/libvaladoc/taglets/tagletlink.vala @@ -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 diff --git a/src/libvaladoc/taglets/tagletparam.vala b/src/libvaladoc/taglets/tagletparam.vala index 713bc21d7..67491162f 100755 --- a/src/libvaladoc/taglets/tagletparam.vala +++ b/src/libvaladoc/taglets/tagletparam.vala @@ -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); diff --git a/src/libvaladoc/taglets/tagletreturn.vala b/src/libvaladoc/taglets/tagletreturn.vala index 5e42120b4..baa985b98 100755 --- a/src/libvaladoc/taglets/tagletreturn.vala +++ b/src/libvaladoc/taglets/tagletreturn.vala @@ -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); diff --git a/src/libvaladoc/taglets/tagletsee.vala b/src/libvaladoc/taglets/tagletsee.vala index 82feacaf2..f93c05697 100755 --- a/src/libvaladoc/taglets/tagletsee.vala +++ b/src/libvaladoc/taglets/tagletsee.vala @@ -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 diff --git a/src/libvaladoc/taglets/tagletsince.vala b/src/libvaladoc/taglets/tagletsince.vala index edcee9c8d..32535c0f9 100755 --- a/src/libvaladoc/taglets/tagletsince.vala +++ b/src/libvaladoc/taglets/tagletsince.vala @@ -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) { diff --git a/src/libvaladoc/taglets/tagletthrows.vala b/src/libvaladoc/taglets/tagletthrows.vala index 891ecbae3..98af08619 100755 --- a/src/libvaladoc/taglets/tagletthrows.vala +++ b/src/libvaladoc/taglets/tagletthrows.vala @@ -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 diff --git a/src/valadoc/valadoc.vala b/src/valadoc/valadoc.vala index 6d95ea121..c9c17e35e 100755 --- a/src/valadoc/valadoc.vala +++ b/src/valadoc/valadoc.vala @@ -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);