1
0
forked from VimPlug/jedi

Fix all the normal issues with the NameFinder change. Now goto...

This commit is contained in:
Dave Halter
2014-09-10 16:30:22 +02:00
parent 657a2c7d4f
commit a93a389d5c
2 changed files with 7 additions and 4 deletions
+6 -2
View File
@@ -234,10 +234,14 @@ class ArrayMethod(IterableWrapper):
super(ArrayMethod, self).__init__()
self.name = name
@property
@underscore_memoization
def names(self):
return [pr.NamePart(unicode(n), self, n.start_pos) for n in self.name.names]
def __getattr__(self, name):
# Set access privileges:
if name not in ['parent', 'names', 'start_pos', 'end_pos', 'get_code',
'get_definition']:
if name not in ['parent', 'start_pos', 'end_pos', 'get_code', 'get_definition']:
raise AttributeError('Strange access on %s: %s.' % (self, name))
return getattr(self.name, name)