- hu_conv_b = "for (" + subty.java_hu_ty + " " + conv_name + ": " + arr_name + ") { " + subty.from_hu_conv[1] + "; }"
- from_hu_conv = (self.consts.map_hu_array_elems(arr_name, conv_name, ty_info, subty), hu_conv_b)
+ iterator = self.consts.for_n_in_arr(conv_name, arr_name, subty)
+ hu_conv_b = iterator[0] + subty.from_hu_conv[1] + ";" + iterator[1]
+ if from_hu_conv is not None:
+ arr_conv = self.consts.primitive_arr_from_hu(ty_info.subty, None, self.consts.map_hu_array_elems(arr_name, conv_name, ty_info, subty))
+ assert arr_conv[1] == ""
+ from_hu_conv = (arr_conv[0], hu_conv_b)
+ else:
+ from_hu_conv = (self.consts.map_hu_array_elems(arr_name, conv_name, ty_info, subty), hu_conv_b)