mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improved python statement mover
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class A:
|
||||
def foo(self, a, b, c, d):
|
||||
if a:
|
||||
if b:
|
||||
if c:
|
||||
if d:
|
||||
self.bar()
|
||||
c<caret> = 3
|
||||
a = 2
|
||||
|
||||
def bar(self):
|
||||
pass
|
||||
@@ -0,0 +1,12 @@
|
||||
class A:
|
||||
def foo(self, a, b, c, d):
|
||||
if a:
|
||||
if b:
|
||||
if c:
|
||||
if d:
|
||||
self.bar()
|
||||
a = 2
|
||||
c = 3
|
||||
|
||||
def bar(self):
|
||||
pass
|
||||
@@ -0,0 +1,12 @@
|
||||
class A:
|
||||
def foo(self, a, b, c, d):
|
||||
if a:
|
||||
if b:
|
||||
if c:
|
||||
if d:
|
||||
c = 3
|
||||
self.bar()
|
||||
a = 2
|
||||
|
||||
def bar(self):
|
||||
pass
|
||||
@@ -1,6 +1,7 @@
|
||||
a = 1
|
||||
def foo():
|
||||
a = 1
|
||||
|
||||
if a:
|
||||
a <caret>= 3
|
||||
if a:
|
||||
a <caret>= 3
|
||||
|
||||
a = 4
|
||||
a = 4
|
||||
@@ -1,7 +1,8 @@
|
||||
a = 1
|
||||
def foo():
|
||||
a = 1
|
||||
|
||||
if a:
|
||||
pass
|
||||
if a:
|
||||
pass
|
||||
|
||||
a = 4
|
||||
a = 3
|
||||
a = 4
|
||||
a = 3
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
a = 1
|
||||
def foo():
|
||||
a = 1
|
||||
|
||||
a = 3
|
||||
if a:
|
||||
pass
|
||||
a = 3
|
||||
if a:
|
||||
pass
|
||||
|
||||
a = 4
|
||||
a = 4
|
||||
Reference in New Issue
Block a user