[vala] girparser: Fix async creation methods throwing errors
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Fix async creation methods throwing errors
- Date: Wed, 18 Jul 2012 12:05:30 +0000 (UTC)
commit ba6be794c15c618e7260a39fe3fd8f162a0d77f6
Author: JÃrg Billeter <j bitron ch>
Date: Wed Jul 18 13:53:44 2012 +0200
girparser: Fix async creation methods throwing errors
vala/valagirparser.vala | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 1dfba8d..41912de 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -3488,24 +3488,24 @@ public class Vala.GirParser : CodeVisitor {
if (a != null && a.has_argument ("array_null_terminated")) {
method.set_attribute_bool ("CCode", "array_null_terminated", a.get_bool ("array_null_terminated"));
}
+ }
- foreach (var param in finish_method.get_parameters ()) {
- if (param.direction == ParameterDirection.OUT) {
- var async_param = param.copy ();
- if (method.scope.lookup (param.name) != null) {
- // parameter name conflict
- async_param.name += "_out";
- }
- method.add_parameter (async_param);
+ foreach (var param in finish_method.get_parameters ()) {
+ if (param.direction == ParameterDirection.OUT) {
+ var async_param = param.copy ();
+ if (method.scope.lookup (param.name) != null) {
+ // parameter name conflict
+ async_param.name += "_out";
}
+ method.add_parameter (async_param);
}
+ }
- foreach (DataType error_type in finish_method.get_error_types ()) {
- method.add_error_type (error_type.copy ());
- }
- finish_method_node.processed = true;
- finish_method_node.merged = true;
+ foreach (DataType error_type in finish_method.get_error_types ()) {
+ method.add_error_type (error_type.copy ());
}
+ finish_method_node.processed = true;
+ finish_method_node.merged = true;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]