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



commit 51a74e6018f5ed3510888cd721f59f4f1787f65c
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 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodetransformer.vala b/codegen/valaccodetransformer.vala
index 587838a..d4adffd 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);
        }
 
@@ -538,4 +542,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]