Exemplo n.º 1
0
    def __init__(self):
        # A list of installed registries
        self._registries = {}
        # Typing declarations extracted from the registries or other sources
        self._functions = defaultdict(list)
        self._attributes = defaultdict(list)
        self._globals = utils.UniqueDict()
        self.tm = rules.default_type_manager
        self.callstack = CallStack()

        # Initialize
        self.init()
Exemplo n.º 2
0
 def __init__(self, py_func, locals={}, targetoptions={}):
     self.py_func = py_func
     self.overloads = utils.UniqueDict()
     self.targetoptions = targetoptions
     self.locals = locals
     self.cache = NullCache()
Exemplo n.º 3
0
 def __init__(self):
     self._unresolved = utils.UniqueDict()
     self._defined = set()
     self._resolved = []
Exemplo n.º 4
0
 def __init__(self, *args, **kws):
     self.ondemand = utils.UniqueDict()
     self.key_type = kws.pop('key_type', None)
     self.value_type = kws.pop('value_type', None)
     self._type_check = self.key_type or self.value_type
     super(TargetRegistry, self).__init__(*args, **kws)
Exemplo n.º 5
0
 def __init__(self, *args, **kws):
     super(TargetRegistry, self).__init__(*args, **kws)
     self.ondemand = utils.UniqueDict()