def find_method_usages(self, type_name, is_override): self.scan_hx_files(True) # print('HU method usages:', type_name) self.classpaths = get_classpaths(self.view) type_paths = self.find_inh_types(type_name, is_override) # print('HU type paths:', type_paths) self.find_method_positions(type_paths, self.context.word.name)
def run(self): win = self.window view = win.active_view() if view is None or view.is_loading() or not is_haxe_scope(view): return self.context = get_context(view) self.classpaths = get_classpaths(view) if not self.context.type: return self.type_map = HaxeOrganizeImports.get_type_map(view) if self.type_map is None: return self.parsed_iname_map = {} self.fields_to_insert = [] self.find_interfaces() self.find_files() self.find_fields() self.insert_fields()