Beispiel #1
0
 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
Beispiel #2
0
 def create_files(self, obj):
     check_qit_object(obj)
     self.env.create_source_files(obj)
Beispiel #3
0
 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
Beispiel #4
0
 def declarations(self, obj):
     check_qit_object(obj)
     return self.env.declarations(obj)