[valadoc] libvaladoc/ctyperesolver: Resolve unbrowsable nodes
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc/ctyperesolver: Resolve unbrowsable nodes
- Date: Tue, 21 Sep 2010 23:20:18 +0000 (UTC)
commit 8b1058f7284dd314cb4471d7acfa960c1af2a496
Author: Florian Brosch <flo brosch gmail com>
Date: Wed Sep 22 00:49:23 2010 +0200
libvaladoc/ctyperesolver: Resolve unbrowsable nodes
src/libvaladoc/api/node.vala | 12 ++++++------
src/libvaladoc/ctyperesolver.vala | 14 +++++++-------
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/libvaladoc/api/node.vala b/src/libvaladoc/api/node.vala
index 90aedfb..d044895 100644
--- a/src/libvaladoc/api/node.vala
+++ b/src/libvaladoc/api/node.vala
@@ -176,27 +176,27 @@ public abstract class Valadoc.Api.Node : Item, Browsable, Documentation, Compara
return children;
}
- public void accept_children_by_type (NodeType type, Visitor visitor) {
+ public void accept_children_by_type (NodeType type, Visitor visitor, bool filtered = true) {
Gee.List<Node> all_children = per_type_children.get (type);
if (all_children != null) {
foreach (Node node in all_children) {
- if (node.do_document) {
+ if (node.do_document || !filtered) {
node.accept (visitor);
}
}
}
}
- public void accept_children (NodeType[] types, Visitor visitor) {
+ public void accept_children (NodeType[] types, Visitor visitor, bool filtered = true) {
foreach (NodeType type in types) {
- accept_children_by_type (type, visitor);
+ accept_children_by_type (type, visitor, filtered);
}
}
- public void accept_all_children (Visitor visitor) {
+ public void accept_all_children (Visitor visitor, bool filtered = true) {
foreach (Gee.List<Node> children in per_type_children.values) {
foreach (Node node in children) {
- if (node.do_document) {
+ if (node.do_document || !filtered) {
node.accept (visitor);
}
}
diff --git a/src/libvaladoc/ctyperesolver.vala b/src/libvaladoc/ctyperesolver.vala
index b9641bf..6a90167 100644
--- a/src/libvaladoc/ctyperesolver.vala
+++ b/src/libvaladoc/ctyperesolver.vala
@@ -64,26 +64,26 @@ public class Valadoc.CTypeResolver : Visitor {
}
public override void visit_package (Package item) {
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_namespace (Namespace item) {
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_interface (Interface item) {
register_symbol (item.get_cname (), item);
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_class (Class item) {
register_symbol (item.get_cname (), item);
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_struct (Struct item) {
register_symbol (item.get_cname (), item);
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_property (Property item) {
@@ -125,7 +125,7 @@ public class Valadoc.CTypeResolver : Visitor {
public override void visit_error_domain (ErrorDomain item) {
register_symbol (item.get_cname (), item);
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_error_code (ErrorCode item) {
@@ -134,7 +134,7 @@ public class Valadoc.CTypeResolver : Visitor {
public override void visit_enum (Api.Enum item) {
register_symbol (item.get_cname (), item);
- item.accept_all_children (this);
+ item.accept_all_children (this, false);
}
public override void visit_enum_value (Api.EnumValue item) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]