[vala] Use accept_children in DataType



commit 732443e358797185ea960e140b41d390be7b87c0
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun May 29 09:23:41 2011 +0200

    Use accept_children in DataType
    
    Fixes bug 566870.

 vala/valadatatype.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index 9521aee..c53ce5c 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -106,13 +106,15 @@ public abstract class Vala.DataType : CodeNode {
 	}
 
 	public override void accept (CodeVisitor visitor) {
+		visitor.visit_data_type (this);
+	}
+
+	public override void accept_children (CodeVisitor visitor) {
 		if (type_argument_list != null && type_argument_list.size > 0) {
 			foreach (DataType type_arg in type_argument_list) {
 				type_arg.accept (visitor);
 			}
 		}
-	
-		visitor.visit_data_type (this);
 	}
 
 	/**



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