summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-04-16 10:58:28 +0100
committerColin Walters <walters@verbum.org>2015-09-29 23:55:44 -0400
commit474cab7c980c1bcbc17b8f5eb4363a6f740593d1 (patch)
treedf217fd40cd539bdecadef174fa274f1c4a8920c
parent483c612363d9faa81992a2a52f6b5e82a7d65fe1 (diff)
downloadgobject-introspection-474cab7c980c1bcbc17b8f5eb4363a6f740593d1.tar.gz
giscanner: Add a Parameter.name property
This is an alias of Parameter.argname, which makes it easier to duck-type debugging of AST nodes by printing out their name property. https://bugzilla.gnome.org/show_bug.cgi?id=747979
-rw-r--r--giscanner/ast.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 0c31b8a8..f0888171 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -882,6 +882,10 @@ class Parameter(TypeContainer):
self.closure_name = None
self.destroy_name = None
+ @property
+ def name(self):
+ return self.argname
+
class Return(TypeContainer):
"""A return value from a function."""