[valadoc] libvaladoc: vala 0.9.4 migration



commit 952d8c4055404859131d30ed63c6369b2d058207
Author: Florian Brosch <flo brosch gmail com>
Date:   Sun Aug 1 00:48:03 2010 +0200

    libvaladoc: vala 0.9.4 migration

 src/libvaladoc/api/field.vala           |    2 +-
 src/libvaladoc/api/formalparameter.vala |    6 +++---
 src/libvaladoc/api/member.vala          |    4 ++--
 src/libvaladoc/api/typereference.vala   |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/libvaladoc/api/field.vala b/src/libvaladoc/api/field.vala
index 16d3d44..3203603 100644
--- a/src/libvaladoc/api/field.vala
+++ b/src/libvaladoc/api/field.vala
@@ -26,7 +26,7 @@ using Valadoc.Content;
 public class Valadoc.Api.Field : Member {
 	public Field (Vala.Field symbol, Node parent) {
 		base (symbol, parent);
-		field_type = new TypeReference (symbol.field_type, this);
+		field_type = new TypeReference (symbol.variable_type, this);
 	}
 
 	public string? get_cname () {
diff --git a/src/libvaladoc/api/formalparameter.vala b/src/libvaladoc/api/formalparameter.vala
index 538433d..beff757 100644
--- a/src/libvaladoc/api/formalparameter.vala
+++ b/src/libvaladoc/api/formalparameter.vala
@@ -26,7 +26,7 @@ using Valadoc.Content;
 public class Valadoc.Api.FormalParameter : Symbol {
 	public FormalParameter (Vala.FormalParameter symbol, Node parent) {
 		base (symbol, parent);
-		parameter_type = new TypeReference (symbol.parameter_type, this);
+		parameter_type = new TypeReference (symbol.variable_type, this);
 	}
 
 	public bool is_out {
@@ -43,7 +43,7 @@ public class Valadoc.Api.FormalParameter : Symbol {
 
 	public bool has_default_value {
 		get {
-			return ((Vala.FormalParameter) symbol).default_expression != null;
+			return ((Vala.FormalParameter) symbol).initializer != null; //
 		}
 	}
 
@@ -88,7 +88,7 @@ public class Valadoc.Api.FormalParameter : Symbol {
 
 			if (has_default_value) {
 				signature.append ("=");
-				signature.append (((Vala.FormalParameter) symbol).default_expression.to_string ());
+				signature.append (((Vala.FormalParameter) symbol).initializer.to_string ());
 			}
 		}
 
diff --git a/src/libvaladoc/api/member.vala b/src/libvaladoc/api/member.vala
index 428d3ac..e15d62f 100644
--- a/src/libvaladoc/api/member.vala
+++ b/src/libvaladoc/api/member.vala
@@ -24,12 +24,12 @@ using Gee;
 
 public abstract class Valadoc.Api.Member : Symbol {
 
-	public Member (Vala.Member symbol, Node parent) {
+	public Member (Vala.Symbol symbol, Node parent) {
 		base (symbol, parent);
 	}
 
 	internal override void process_comments (Settings settings, DocumentationParser parser) {
-		var source_comment = ((Vala.Member) symbol).comment;
+		var source_comment = symbol.comment;
 		if (source_comment != null) {
 			documentation = parser.parse (this, source_comment);
 		}
diff --git a/src/libvaladoc/api/typereference.vala b/src/libvaladoc/api/typereference.vala
index e62071c..007ea69 100644
--- a/src/libvaladoc/api/typereference.vala
+++ b/src/libvaladoc/api/typereference.vala
@@ -57,7 +57,7 @@ public class Valadoc.Api.TypeReference : Item {
 			}
 			if (node is Vala.FormalParameter) {
 				return (((Vala.FormalParameter)node).direction == Vala.ParameterDirection.IN &&
-					((Vala.FormalParameter)node).parameter_type.value_owned);
+					((Vala.FormalParameter)node).variable_type.value_owned);
 			}
 			if (node is Vala.Property) {
 				return ((Vala.Property)node).property_type.value_owned;
@@ -76,7 +76,7 @@ public class Valadoc.Api.TypeReference : Item {
 				if (((Vala.FormalParameter)parent).direction != Vala.ParameterDirection.IN) {
 					return false;
 				}
-				return ((Vala.FormalParameter)parent).parameter_type.value_owned;
+				return ((Vala.FormalParameter)parent).variable_type.value_owned;
 			}
 			return false;
 		}



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