diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-03-23 20:43:47 +0400 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2021-06-20 21:28:02 +0000 |
commit | b8880276b257d584f2d7120a05daba19093de319 (patch) | |
tree | 637cb2307181f7df08ef3ca15adcad693b1ecfbd /giscanner/ast.py | |
parent | 01821d5e4986a36d7a8de9278540205e54144e1d (diff) | |
download | gobject-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.py | 3 |
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): |