[gobject-introspection/wip/transformer] Fix reference to "name" for Parameter



commit 8e77e092199964f8427511ae2c43a97ad332a32e
Author: Colin Walters <walters verbum org>
Date:   Wed Jul 28 20:40:17 2010 -0400

    Fix reference to "name" for Parameter

 giscanner/ast.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 324d1bc..3b38235 100755
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -454,12 +454,12 @@ class Callable(Node):
 
     def get_parameter_index(self, name):
         for i, parameter in enumerate(self.parameters):
-            if parameter.name == name:
+            if parameter.argname == name:
                 return i
 
     def get_parameter(self, name):
         for parameter in self.parameters:
-            if parameter.name == name:
+            if parameter.argname == name:
                 return parameter
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]