[valadoc] libaladoc/html: rm exception listing from documentation



commit 0c9118a32e3409abd0550adca752537b487cde42
Author: Florian Brosch <flo brosch gmail com>
Date:   Tue Aug 3 02:58:50 2010 +0200

    libaladoc/html: rm exception listing from documentation

 src/libvaladoc/api/formalparameter.vala |    2 +-
 src/libvaladoc/html/basicdoclet.vala    |   61 ++++++++++++++++---------------
 2 files changed, 32 insertions(+), 31 deletions(-)
---
diff --git a/src/libvaladoc/api/formalparameter.vala b/src/libvaladoc/api/formalparameter.vala
index beff757..e1427d8 100644
--- a/src/libvaladoc/api/formalparameter.vala
+++ b/src/libvaladoc/api/formalparameter.vala
@@ -43,7 +43,7 @@ public class Valadoc.Api.FormalParameter : Symbol {
 
 	public bool has_default_value {
 		get {
-			return ((Vala.FormalParameter) symbol).initializer != null; //
+			return ((Vala.FormalParameter) symbol).initializer != null;
 		}
 	}
 
diff --git a/src/libvaladoc/html/basicdoclet.vala b/src/libvaladoc/html/basicdoclet.vala
index 25bf418..27dcf92 100755
--- a/src/libvaladoc/html/basicdoclet.vala
+++ b/src/libvaladoc/html/basicdoclet.vala
@@ -539,37 +539,38 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
 			write_package_note (node);
 		}
 
-		if (node.has_children ({
-				Api.NodeType.ERROR_CODE,
-				Api.NodeType.ENUM_VALUE,
-				Api.NodeType.CREATION_METHOD,
-				Api.NodeType.STATIC_METHOD,
-				Api.NodeType.CLASS,
-				Api.NodeType.STRUCT,
-				Api.NodeType.ENUM,
-				Api.NodeType.DELEGATE,
-				Api.NodeType.METHOD,
-				Api.NodeType.SIGNAL,
-				Api.NodeType.PROPERTY,
-				Api.NodeType.FIELD,
-				Api.NodeType.CONSTANT
-			})) {
-			writer.start_tag ("h2", {"class", css_title}).text ("Content:").end_tag ("h2");
-			write_children (node, Api.NodeType.ERROR_CODE, "Error codes", node);
-			write_children (node, Api.NodeType.ENUM_VALUE, "Enum values", node);
-			write_children (node, Api.NodeType.CLASS, "Classes", node);
-			write_children (node, Api.NodeType.STRUCT, "Structs", node);
-			write_children (node, Api.NodeType.ENUM, "Enums", node);
-			write_children (node, Api.NodeType.CONSTANT, "Constants", node);
-			write_children (node, Api.NodeType.PROPERTY, "Properties", node);
-			write_children (node, Api.NodeType.DELEGATE, "Delegates", node);
-			write_children (node, Api.NodeType.STATIC_METHOD, "Static methods", node);
-			write_children (node, Api.NodeType.CREATION_METHOD, "Creation methods", node);
-			write_children (node, Api.NodeType.METHOD, "Methods", node);
-			write_children (node, Api.NodeType.SIGNAL, "Signals", node);
-			write_children (node, Api.NodeType.FIELD, "Fields", node);
+		if (!(node is Method || node is Delegate || node is Api.Signal)) { // avoids exception listings
+			if (node.has_children ({
+					Api.NodeType.ERROR_CODE,
+					Api.NodeType.ENUM_VALUE,
+					Api.NodeType.CREATION_METHOD,
+					Api.NodeType.STATIC_METHOD,
+					Api.NodeType.CLASS,
+					Api.NodeType.STRUCT,
+					Api.NodeType.ENUM,
+					Api.NodeType.DELEGATE,
+					Api.NodeType.METHOD,
+					Api.NodeType.SIGNAL,
+					Api.NodeType.PROPERTY,
+					Api.NodeType.FIELD,
+					Api.NodeType.CONSTANT
+				})) {
+				writer.start_tag ("h2", {"class", css_title}).text ("Content:").end_tag ("h2");
+				write_children (node, Api.NodeType.ERROR_CODE, "Error codes", node);
+				write_children (node, Api.NodeType.ENUM_VALUE, "Enum values", node);
+				write_children (node, Api.NodeType.CLASS, "Classes", node);
+				write_children (node, Api.NodeType.STRUCT, "Structs", node);
+				write_children (node, Api.NodeType.ENUM, "Enums", node);
+				write_children (node, Api.NodeType.CONSTANT, "Constants", node);
+				write_children (node, Api.NodeType.PROPERTY, "Properties", node);
+				write_children (node, Api.NodeType.DELEGATE, "Delegates", node);
+				write_children (node, Api.NodeType.STATIC_METHOD, "Static methods", node);
+				write_children (node, Api.NodeType.CREATION_METHOD, "Creation methods", node);
+				write_children (node, Api.NodeType.METHOD, "Methods", node);
+				write_children (node, Api.NodeType.SIGNAL, "Signals", node);
+				write_children (node, Api.NodeType.FIELD, "Fields", node);
+			}
 		}
-
 		writer.end_tag ("div");
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]