[gobject-introspection] giscanner: Add a Parameter.name property
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: Add a Parameter.name property
- Date: Wed, 30 Sep 2015 03:59:13 +0000 (UTC)
commit 474cab7c980c1bcbc17b8f5eb4363a6f740593d1
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Apr 16 10:58:28 2015 +0100
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
giscanner/ast.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 0c31b8a..f088817 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."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]