diff options
Diffstat (limited to 'utils/codegen/controls.py')
-rw-r--r-- | utils/codegen/controls.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/codegen/controls.py b/utils/codegen/controls.py index 7bafee59..03c77cc6 100644 --- a/utils/codegen/controls.py +++ b/utils/codegen/controls.py @@ -110,3 +110,11 @@ class Control(object): return f"Span<const {typ}, {self.__size}>" else: return f"Span<const {typ}>" + + @property + def element_type(self): + return self.__data.get('type') + + @property + def size(self): + return self.__size |