]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix building with Vala 0.12 branch (commit b6c980fe26b3b51399d9bb6cd92a36e900d6eff6)
authorFlorian Brosch <flo.brosch@gmail.com>
Tue, 2 Nov 2010 00:36:31 +0000 (01:36 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 2 Nov 2010 00:55:51 +0000 (01:55 +0100)
src/libvaladoc/api/formalparameter.vala
src/libvaladoc/api/nodebuilder.vala
src/libvaladoc/api/tree.vala
src/libvaladoc/api/typereference.vala

index e1427d8bcec977a4c277b0b4e11251a18270087f..1dd7bc8710fc6448e68eba65a925fecbb2a6c331 100644 (file)
@@ -24,26 +24,26 @@ using Gee;
 using Valadoc.Content;
 
 public class Valadoc.Api.FormalParameter : Symbol {
-       public FormalParameter (Vala.FormalParameter symbol, Node parent) {
+       public FormalParameter (Vala.Parameter symbol, Node parent) {
                base (symbol, parent);
                parameter_type = new TypeReference (symbol.variable_type, this);
        }
 
        public bool is_out {
                get {
-                       return ((Vala.FormalParameter) symbol).direction == Vala.ParameterDirection.OUT;
+                       return ((Vala.Parameter) symbol).direction == Vala.ParameterDirection.OUT;
                }
        }
 
        public bool is_ref {
                get {
-                       return ((Vala.FormalParameter) symbol).direction == Vala.ParameterDirection.REF;
+                       return ((Vala.Parameter) symbol).direction == Vala.ParameterDirection.REF;
                }
        }
 
        public bool has_default_value {
                get {
-                       return ((Vala.FormalParameter) symbol).initializer != null;
+                       return ((Vala.Parameter) symbol).initializer != null;
                }
        }
 
@@ -51,7 +51,7 @@ public class Valadoc.Api.FormalParameter : Symbol {
 
        public bool ellipsis {
                get {
-                       return ((Vala.FormalParameter) symbol).ellipsis;
+                       return ((Vala.Parameter) symbol).ellipsis;
                }
        }
 
@@ -88,7 +88,7 @@ public class Valadoc.Api.FormalParameter : Symbol {
 
                        if (has_default_value) {
                                signature.append ("=");
-                               signature.append (((Vala.FormalParameter) symbol).initializer.to_string ());
+                               signature.append (((Vala.Parameter) symbol).initializer.to_string ());
                        }
                }
 
index d0c820fb2c414418cc426ff71ab9e638f35f1389..4a67161f14b3485f4759f20909e0f9b43aac6df1 100644 (file)
@@ -212,7 +212,7 @@ internal class Valadoc.Api.NodeBuilder : Vala.CodeVisitor {
                process_children (node, element);
        }
 
-       public override void visit_formal_parameter (Vala.FormalParameter element) {
+       public override void visit_formal_parameter (Vala.Parameter element) {
                Node parent = get_parent_node_for (element);
 
                Symbol node = new FormalParameter (element, parent);
index cb305c4097892835d24c8706f24ce2ea92f67c28..42835d3f08ea8b34132695eecfcc8acb7309a035 100644 (file)
@@ -349,14 +349,8 @@ public class Valadoc.Api.Tree {
                        return false;
                }
 
-               Vala.SymbolResolver resolver = new Vala.SymbolResolver ();
-               resolver.resolve(this.context);
-               if (this.context.report.get_errors () > 0) {
-                       return false;
-               }
+               context.check ();
 
-               Vala.SemanticAnalyzer analyzer = new Vala.SemanticAnalyzer ( );
-               analyzer.analyze(this.context);
                if (this.context.report.get_errors () > 0) {
                        return false;
                }
index 007ea69bd1fb31894875637e60440d7fc8fcc4af..e31b2f32ac2ba08ed53fad6ae7716a87e7a9a29e 100644 (file)
@@ -55,9 +55,9 @@ public class Valadoc.Api.TypeReference : Item {
                        if (node == null) {
                                return false;
                        }
-                       if (node is Vala.FormalParameter) {
-                               return (((Vala.FormalParameter)node).direction == Vala.ParameterDirection.IN &&
-                                       ((Vala.FormalParameter)node).variable_type.value_owned);
+                       if (node is Vala.Parameter) {
+                               return (((Vala.Parameter)node).direction == Vala.ParameterDirection.IN &&
+                                       ((Vala.Parameter)node).variable_type.value_owned);
                        }
                        if (node is Vala.Property) {
                                return ((Vala.Property)node).property_type.value_owned;
@@ -72,11 +72,11 @@ public class Valadoc.Api.TypeReference : Item {
                        Vala.CodeNode parent = this.vtyperef.parent_node;
 
                        // parameter:
-                       if (parent is Vala.FormalParameter) {
-                               if (((Vala.FormalParameter)parent).direction != Vala.ParameterDirection.IN) {
+                       if (parent is Vala.Parameter) {
+                               if (((Vala.Parameter)parent).direction != Vala.ParameterDirection.IN) {
                                        return false;
                                }
-                               return ((Vala.FormalParameter)parent).variable_type.value_owned;
+                               return ((Vala.Parameter)parent).variable_type.value_owned;
                        }
                        return false;
                }
@@ -118,7 +118,7 @@ public class Valadoc.Api.TypeReference : Item {
                get {
                        Vala.CodeNode parent = this.vtyperef.parent_node;
 
-                       if (parent is Vala.FormalParameter) {
+                       if (parent is Vala.Parameter) {
                                return false;
                        }