1. Gabriele Lanaro
  2. ropemacs

Commits

Ali Gholami Rudi  committed 2ddc567

interface: added rope-analyze-module

  • Participants
  • Parent commits 990ca59
  • Branches trunk

Comments (0)

Files changed (2)

File README.txt

View file
 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

File ropemacs/interface.py

View file
             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: ')}