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



commit e70bdd99c23378aff79b0c9ef2d2e4790caf80e7
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 889f949..70c7d98 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);
        }
 
@@ -537,4 +541,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]