1
0
forked from VimPlug/jedi

Further improvements to the interpreter refactoring.

This commit is contained in:
Dave Halter
2016-05-19 01:41:06 +02:00
parent 1bb8d32084
commit a08ad2d53d
3 changed files with 18 additions and 6 deletions

View File

@@ -56,7 +56,15 @@ class MixedName(compiled.CompiledName):
@parent.setter
def parent(self, value):
pass # Just ignore this, FakeName tries to overwrite the parent attribute.
pass # Just ignore this, Name tries to overwrite the parent attribute.
@property
def start_pos(self):
if isinstance(self.parent, MixedObject):
return self.parent.node_name.start_pos
# This means a start_pos that doesn't exist (compiled objects).
return (0, 0)
class LazyMixedNamesDict(compiled.LazyNamesDict):