1
0
forked from VimPlug/jedi

Adding prev_sibling, getting self attributes.

This commit is contained in:
Dave Halter
2014-10-23 14:03:52 +02:00
parent 88dcbe1f48
commit 387fc3b038
4 changed files with 29 additions and 6 deletions

View File

@@ -295,11 +295,16 @@ class FakeArray(pr.Array):
class FakeStatement(pr.ExprStmt):
def __init__(self, values, start_pos=(0, 0), parent=None):
p = start_pos
self._start_pos = start_pos
super(FakeStatement, self).__init__([])
self.values = values
self.parent = parent
@property
def start_pos(self):
"""Overwriting the original start_pos property."""
return self._start_pos
class FakeImport(pr.Import):
def __init__(self, name, parent, level=0):