summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-12-13 10:55:08 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-12-13 10:55:08 +0000
commita1d342b3006b0933227acf1f7e8fcf9f8b38ac3b (patch)
tree9230e545fa3dcce49ffeae7a56ab045b5e3c1ef6 /vapigen
parent7dd95544e2bdb4c9ed6d29d7b2309987961af458 (diff)
downloadvala-a1d342b3006b0933227acf1f7e8fcf9f8b38ac3b.tar.gz
Detect conflicting local variables in parent scopes
2008-12-13 Jürg Billeter <j@bitron.ch> * vala/valablock.vala: Detect conflicting local variables in parent scopes * vala/valaarraycreationexpression.vala: * vala/valacodewriter.vala: * vala/valaforeachstatement.vala: * vala/valagenieparser.vala: * vala/valaparser.vala: * gobject/valaccodebasemodule.vala: * gobject/valaccodecontrolflowmodule.vala: * gobject/valaccodemethodcallmodule.vala: * gobject/valagobjectmodule.vala: * vapigen/valagidlparser.vala: Fix conflicting local variables svn path=/trunk/; revision=2138
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valagidlparser.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala
index 8fe811d5e..096c74c91 100644
--- a/vapigen/valagidlparser.vala
+++ b/vapigen/valagidlparser.vala
@@ -1435,7 +1435,7 @@ public class Vala.GIdlParser : CodeVisitor {
bool set_delegate_target_pos = false;
double delegate_target_pos = 0;
bool array_requested = false;
- var attributes = get_attributes ("%s.%s".printf (symbol, param_node.name));
+ attributes = get_attributes ("%s.%s".printf (symbol, param_node.name));
if (attributes != null) {
foreach (string attr in attributes) {
var nv = attr.split ("=", 2);
@@ -1862,7 +1862,7 @@ public class Vala.GIdlParser : CodeVisitor {
p.direction = direction;
sig.add_parameter (p);
- var attributes = get_attributes ("%s::%s.%s".printf (current_data_type.get_cname (), sig.name, param_node.name));
+ attributes = get_attributes ("%s::%s.%s".printf (current_data_type.get_cname (), sig.name, param_node.name));
if (attributes != null) {
string ns_name = null;
foreach (string attr in attributes) {