Commits

Anonymous committed 2ddc567

interface: added rope-analyze-module

Comments (0)

Files changed (2)

 C-c r a d         rope-show-doc
 C-c r a f         rope-find-occurrences
 C-c r a ?         rope-lucky-assist
+                  rope-analyze-module
 
                   rope-auto-import
                   rope-generate-autoimport-cache

ropemacs/interface.py

             parent.create_folder(name)
         self._create('directory', callback, 'parent')
 
+    @global_command()
+    def analyze_module(self):
+        """Perform static object inference analysis on this module"""
+        self._check_project()
+        resource = self._get_resource()
+        self.project.pycore.analyze_module(resource)
+
     def _create(self, name, callback, parentname='source'):
         self._check_project()
         confs = {'name': ropemacs.dialog.Data(name.title() + ' name: ')}