Fix: config.py: implement _ArrayFieldType.size_is_dynamic()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 9 Sep 2020 14:15:25 +0000 (10:15 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 9 Sep 2020 14:15:25 +0000 (10:15 -0400)
An array field type's size is dynamic if its element field type is.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/config.py

index fbef355747568c3b3dd1d97a82575b7180e70a49..fdd1b4461b1e2a2cbfb13351201543cace0642a7 100644 (file)
@@ -206,6 +206,10 @@ class _ArrayFieldType(_FieldType):
     def alignment(self) -> Alignment:
         return self._element_field_type.alignment
 
+    @property
+    def size_is_dynamic(self):
+        return self._element_field_type.size_is_dynamic
+
 
 class StaticArrayFieldType(_ArrayFieldType):
     def __init__(self, length: Count, element_field_type: _FieldType):
This page took 0.023282 seconds and 4 git commands to generate.