Trying to get the NameFinder to use only NameParts.
This commit is contained in:
1 parent
43cf1d451f
commit
657a2c7d4f
4 files changed
+11
-3
No files matched your search
@@ -291,6 +291,11 @@ class InstanceElement(use_metaclass(CachedMetaClass, pr.Base)):
|
||||
return [get_instance_el(self._evaluator, self.instance, command, self.is_class_var)
|
||||
for command in self.var.expression_list()]
|
||||
|
||||
@property
|
||||
@underscore_memoization
|
||||
def names(self):
|
||||
return [pr.NamePart(unicode(n), self, n.start_pos) for n in self.var.names]
|
||||
|
||||
@property
|
||||
@underscore_memoization
|
||||
def name(self):
|
||||
|
||||
Reference in new issue
Block a user