libdriver_la_VALASOURCES = \
initializerbuilder.vala \
- childsymbolregistrar.vala \
symbolresolver.vala \
treebuilder.vala \
driver.vala \
SymbolResolver resolver = new SymbolResolver (builder);
tree.accept (resolver);
- ChildSymbolRegistrar registrar = new ChildSymbolRegistrar ();
- tree.accept (registrar);
-
return tree;
}
}
libdriver_la_VALASOURCES = \
initializerbuilder.vala \
- childsymbolregistrar.vala \
symbolresolver.vala \
treebuilder.vala \
driver.vala \
+++ /dev/null
-/* childsymbolregistrar.vala
- *
- * Copyright (C) 2011 Florian Brosch
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Author:
- * Florian Brosch <flo.brosch@gmail.com>
- */
-
-using Valadoc.Api;
-using Gee;
-
-
-public class Valadoc.Drivers.ChildSymbolRegistrar : Visitor {
- /**
- * {@inheritDoc}
- */
- public override void visit_tree (Api.Tree item) {
- item.accept_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_package (Package item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_namespace (Namespace item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_interface (Interface item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (var type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_related_interface (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_derived_interface (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_class (Class item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (TypeReference type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_implementation (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_child_class (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_struct (Struct item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_property (Property item) {
- item.accept_all_children (this);
- }
-}
-
SymbolResolver resolver = new SymbolResolver (builder);
tree.accept (resolver);
- ChildSymbolRegistrar registrar = new ChildSymbolRegistrar ();
- tree.accept (registrar);
-
return tree;
}
}
libdriver_la_VALASOURCES = \
initializerbuilder.vala \
- childsymbolregistrar.vala \
symbolresolver.vala \
treebuilder.vala \
driver.vala \
+++ /dev/null
-/* childsymbolregistrar.vala
- *
- * Copyright (C) 2011 Florian Brosch
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Author:
- * Florian Brosch <flo.brosch@gmail.com>
- */
-
-using Valadoc.Api;
-using Gee;
-
-
-public class Valadoc.Drivers.ChildSymbolRegistrar : Visitor {
- /**
- * {@inheritDoc}
- */
- public override void visit_tree (Api.Tree item) {
- item.accept_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_package (Package item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_namespace (Namespace item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_interface (Interface item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (var type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_related_interface (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_derived_interface (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_class (Class item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (TypeReference type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_implementation (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_child_class (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_struct (Struct item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_property (Property item) {
- item.accept_all_children (this);
- }
-}
-
SymbolResolver resolver = new SymbolResolver (builder);
tree.accept (resolver);
- ChildSymbolRegistrar registrar = new ChildSymbolRegistrar ();
- tree.accept (registrar);
-
return tree;
}
}
libdriver_la_VALASOURCES = \
initializerbuilder.vala \
- childsymbolregistrar.vala \
symbolresolver.vala \
treebuilder.vala \
driver.vala \
+++ /dev/null
-/* childsymbolregistrar.vala
- *
- * Copyright (C) 2011 Florian Brosch
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Author:
- * Florian Brosch <flo.brosch@gmail.com>
- */
-
-using Valadoc.Api;
-using Gee;
-
-
-public class Valadoc.Drivers.ChildSymbolRegistrar : Visitor {
- /**
- * {@inheritDoc}
- */
- public override void visit_tree (Api.Tree item) {
- item.accept_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_package (Package item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_namespace (Namespace item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_interface (Interface item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (var type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_related_interface (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_derived_interface (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_class (Class item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (TypeReference type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_implementation (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_child_class (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_struct (Struct item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_property (Property item) {
- item.accept_all_children (this);
- }
-}
-
SymbolResolver resolver = new SymbolResolver (builder);
tree.accept (resolver);
- ChildSymbolRegistrar registrar = new ChildSymbolRegistrar ();
- tree.accept (registrar);
-
return tree;
}
}
libdriver_la_VALASOURCES = \
initializerbuilder.vala \
- childsymbolregistrar.vala \
symbolresolver.vala \
treebuilder.vala \
driver.vala \
+++ /dev/null
-/* childsymbolregistrar.vala
- *
- * Copyright (C) 2011 Florian Brosch
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Author:
- * Florian Brosch <flo.brosch@gmail.com>
- */
-
-using Valadoc.Api;
-using Gee;
-
-
-public class Valadoc.Drivers.ChildSymbolRegistrar : Visitor {
- /**
- * {@inheritDoc}
- */
- public override void visit_tree (Api.Tree item) {
- item.accept_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_package (Package item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_namespace (Namespace item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_interface (Interface item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (var type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_related_interface (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_derived_interface (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_class (Class item) {
- Collection<TypeReference> interfaces = item.get_implemented_interface_list ();
- foreach (TypeReference type_ref in interfaces) {
- ((Interface) type_ref.data_type).register_implementation (item);
- }
-
- if (item.base_type != null) {
- ((Class) item.base_type.data_type).register_child_class (item);
- }
-
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_struct (Struct item) {
- item.accept_all_children (this);
- }
-
- /**
- * {@inheritDoc}
- */
- public override void visit_property (Property item) {
- item.accept_all_children (this);
- }
-}
-
SymbolResolver resolver = new SymbolResolver (builder);
tree.accept (resolver);
- ChildSymbolRegistrar registrar = new ChildSymbolRegistrar ();
- tree.accept (registrar);
-
return tree;
}
}
api/attributeargument.vala \
api/attribute.vala \
api/array.vala \
+ api/childsymbolregistrar.vala \
api/class.vala \
api/constant.vala \
api/delegate.vala \
using Gee;
-public class Valadoc.Drivers.ChildSymbolRegistrar : Visitor {
+public class Valadoc.Api.ChildSymbolRegistrar : Visitor {
/**
* {@inheritDoc}
*/
public override void visit_tree (Api.Tree item) {
- item.accept_children (this);
+ item.accept_children (this);
}
/**
* {@inheritDoc}
*/
public override void visit_package (Package item) {
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
/**
* {@inheritDoc}
*/
public override void visit_namespace (Namespace item) {
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
/**
((Class) item.base_type.data_type).register_derived_interface (item);
}
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
/**
((Class) item.base_type.data_type).register_child_class (item);
}
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
/**
* {@inheritDoc}
*/
public override void visit_struct (Struct item) {
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
/**
* {@inheritDoc}
*/
public override void visit_property (Property item) {
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
}
return quit (reporter);
}
+ // register child symbols:
+ Valadoc.Api.ChildSymbolRegistrar registrar = new Valadoc.Api.ChildSymbolRegistrar ();
+ doctree.accept (registrar);
// process documentation
Valadoc.DocumentationParser docparser = new Valadoc.DocumentationParser (settings, reporter, doctree, modules);