Implement inline refactorings

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

No files matched your search

+2 -1
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):
"""