def _translate_function_type(self, function: Function, binja_function: bn.Function): # Memoize if function.has_attribute('function_type'): function_type = function.get_attribute('function_type') if function_type != binja_function.function_type: binja_function.function_type = function_type return try: locals = VariableSet(binja_function, self._log) function_type = self._create_function_type(function, binja_function, locals) if function_type is not None: binja_function.function_type = function_type except: self._log.warning(f'while creating function type', exc_info=sys.exc_info())
def _translate_function_type(self, function: Function, binja_function: bn.Function): try: local_vars = LocationIndex(binja_function, None, self._log) function_type = self._create_function_type(function, binja_function, local_vars) if function_type is not None: binja_function.function_type = function_type except Exception: self._log.warning('while creating function type', exc_info=sys.exc_info())