[vala/wip/transform: 121/132] Visit more expressions in the transformer
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 121/132] Visit more expressions in the transformer
- Date: Mon, 16 Apr 2018 15:12:59 +0000 (UTC)
commit 284d86e969c55adae92a83fde6e79da4c197e0cb
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 ab39864..91c6e9c 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]