Commits

Anonymous committed dea3c1a

autoimport: added AutoImport.get_all_names()

Comments (0)

Files changed (1)

rope/contrib/autoimport.py

                 result.append(module)
         return result
 
+    def get_all_names(self):
+        """Return the list of all cached global names"""
+        result = set()
+        for module in self.names:
+            result.update(set(self.names[module]))
+        return result
+
     def get_name_locations(self, name):
         """Return a list of ``(resource, lineno)`` tuples"""
         result = []