mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix enums with "-"/"_" in the name
This commit is contained in:
parent
f2b7d3bd95
commit
c4beb6841c
5 changed files with 21 additions and 1 deletions
|
@ -291,6 +291,10 @@ class EnumMember(GirNode):
|
|||
def value(self):
|
||||
return self._value
|
||||
|
||||
@property
|
||||
def nick(self):
|
||||
return self.xml["glib:nick"]
|
||||
|
||||
@property
|
||||
def signature(self):
|
||||
return f"enum member {self.full_name} = {self.value}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue