def __init__(self, type, iterator=None, generator=None, size=None, indexer=None): check_qit_object(type) assert type.is_type() self.type = type self.iterator = iterator self.generator = generator if size is not None: self.size = Int().value(size) else: self.size = None self.indexer = indexer
def create_files(self, obj): check_qit_object(obj) self.env.create_source_files(obj)
def value(self, value): if self.is_python_instance(value): return Constructor(self, self.transform_python_instance(value)) check_qit_object(value) value.check_expression_type(self) return value
def declarations(self, obj): check_qit_object(obj) return self.env.declarations(obj)