[vala/wip/transform: 108/124] Visit more expressions in the transformer



commit 754bed2c7aa6cbb39a975f6c353f8cd9fa51a511
Author: Luca Bruno <lucabru src gnome org>
Date:   Tue Feb 4 00:48:10 2014 +0100

    Visit more expressions in the transformer

 codegen/valaccodetransformer.vala | 53 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/codegen/valaccodetransformer.vala b/codegen/valaccodetransformer.vala
index b30c40cb9..18f64e8e7 100644
--- a/codegen/valaccodetransformer.vala
+++ b/codegen/valaccodetransformer.vala
@@ -78,6 +78,10 @@ public class Vala.CCodeTransformer : CodeTransformer {
        }
 
        public override void visit_creation_method (CreationMethod m) {
+               if (m.body == null) {
+                       return;
+               }
+
                m.accept_children (this);
        }
 
@@ -540,4 +544,53 @@ public class Vala.CCodeTransformer : CodeTransformer {
        public override void visit_lambda_expression (LambdaExpression expr) {
                expr.accept_children (this);
        }
+
+
+       public override void visit_array_creation_expression (ArrayCreationExpression expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_member_access (MemberAccess expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_element_access (ElementAccess expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_slice_expression (SliceExpression expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_base_access (BaseAccess expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_sizeof_expression (SizeofExpression expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_typeof_expression (TypeofExpression expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_named_argument (NamedArgument expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_pointer_indirection (PointerIndirection expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_addressof_expression (AddressofExpression expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_reference_transfer_expression (ReferenceTransferExpression expr) {
+               expr.accept_children (this);
+       }
+
+       public override void visit_type_check (TypeCheck expr) {
+               expr.accept_children (this);
+       }
 }


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