1
0
forked from VimPlug/jedi

Implement inline refactorings

This commit is contained in:
Dave Halter
2020-02-14 13:53:41 +01:00
parent b4628abc60
commit 0a3ff6bd70
3 changed files with 77 additions and 11 deletions

View File

@@ -562,7 +562,8 @@ class Script(object):
"""
Inlines a variable under the cursor.
"""
raise NotImplementedError
names = [d._name for d in self.get_references(line, column, include_builtins=True)]
return refactoring.inline(self._grammar, names)
def reorder_imports(self):
"""