}
protected void write_navi_children (Api.Node node, Api.NodeType type, Api.Node? parent) {
- foreach (Api.Node child in node.get_children_by_type (type)) {
+ var children = node.get_children_by_type (type);
+ children.sort ();
+ foreach (Api.Node child in children) {
write_navi_entry (child, parent, get_html_css_class (child), child != parent);
}
}
TYPE_PARAMETER
}
-public abstract class Valadoc.Api.Node : Item, Visitable, Documentation {
+public abstract class Valadoc.Api.Node : Item, Visitable, Documentation, Comparable<Node> {
private bool do_document = false;
public abstract string? name { owned get; }
}
}
- return children.read_only_view;
+ return children;
}
public void accept_children_by_type (NodeType type, Visitor visitor) {
}
return this._full_name;
}
+
+ public int compare_to (Node node) {
+ return strcmp (name, node.name);
+ }
}
this.context.checking = settings.enable_checking;
this.context.deprecated = settings.deprecated;
this.context.experimental = settings.experimental;
- this.context.non_null_experimental = settings.non_null_experimental;
+// this.context.non_null_experimental = settings.non_null_experimental;
this.context.dbus_transformation = !settings.disable_dbus_transformation;
return false;
}
- if (context.non_null_experimental) {
- Vala.NullChecker null_checker = new Vala.NullChecker ();
- null_checker.check (this.context);
+// if (context.non_null_experimental) {
+// Vala.NullChecker null_checker = new Vala.NullChecker ();
+// null_checker.check (this.context);
- if (this.context.report.get_errors () > 0) {
- return false;
- }
- }
+// if (this.context.report.get_errors () > 0) {
+// return false;
+// }
+// }
Api.NodeBuilder builder = new NodeBuilder (this);
this.context.accept(builder);