@@ -120,25 +120,25 @@ def __init__(self, env: 'RDLEnvironment', src_ref: 'OptionalSourceRef', elements
120120 super ().__init__ (env , src_ref )
121121 self .elements = elements
122122
123- def predict_type (self ) -> rdltypes .ArrayPlaceholder :
123+ def predict_type (self ) -> rdltypes .ArrayedType :
124124
125125 if not self .elements :
126126 # Empty array. Element type is indeterminate
127- return rdltypes .ArrayPlaceholder (None )
127+ return rdltypes .ArrayedType (None )
128128
129129 # Get type of first element
130130 element_iter = iter (self .elements )
131131 uniform_type = next (element_iter ).predict_type ()
132132
133133 # RDL does not allow directly nested arrays
134- assert not isinstance (uniform_type , rdltypes .ArrayPlaceholder )
134+ assert not isinstance (uniform_type , rdltypes .ArrayedType )
135135
136136 # All elements of the array shall have a uniform type
137137 for element in element_iter :
138138 this_type = element .predict_type ()
139139
140140 # RDL does not allow directly nested arrays
141- assert not isinstance (this_type , rdltypes .ArrayPlaceholder )
141+ assert not isinstance (this_type , rdltypes .ArrayedType )
142142
143143 # First check if it is a direct match
144144 if uniform_type == this_type :
@@ -176,7 +176,7 @@ def predict_type(self) -> rdltypes.ArrayPlaceholder:
176176 self .src_ref
177177 )
178178
179- return rdltypes .ArrayPlaceholder (uniform_type )
179+ return rdltypes .ArrayedType (uniform_type )
180180
181181 def get_value (self , eval_width : Optional [int ]= None ) -> List [Any ]:
182182 result = []
0 commit comments