summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-03-23 20:43:47 +0400
committerEmmanuele Bassi <ebassi@gmail.com>2021-06-20 21:28:02 +0000
commitb8880276b257d584f2d7120a05daba19093de319 (patch)
tree637cb2307181f7df08ef3ca15adcad693b1ecfbd /giscanner/ast.py
parent01821d5e4986a36d7a8de9278540205e54144e1d (diff)
downloadgobject-introspection-b8880276b257d584f2d7120a05daba19093de319.tar.gz
Add glib:name to enum member
This member will contain the string from the GEnumValue/GFlagsValue 'value_name' introspection dump. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 593969f2..9a0d95c7 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -972,12 +972,13 @@ class Bitfield(Node, Registered):
class Member(Annotated):
- def __init__(self, name, value, symbol, nick):
+ def __init__(self, name, value, symbol, nick=None, dump_name=None):
Annotated.__init__(self)
self.name = name
self.value = value
self.symbol = symbol
self.nick = nick
+ self.dump_name = dump_name
self.parent = None
def _compare(self, other, op):