Fix usages.
This commit is contained in:
1 parent
6bf154de5e
commit
b2267d3878
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -399,7 +399,7 @@ class Simple(Base):
|
||||
def name_for_position(self, position):
|
||||
for c in self.children:
|
||||
if isinstance(c, Leaf):
|
||||
if c.start_pos <= position <= c.end_pos:
|
||||
if isinstance(c, Name) and c.start_pos <= position <= c.end_pos:
|
||||
return c
|
||||
else:
|
||||
result = c.name_for_position(position)
|
||||
|
||||
Reference in new issue
Block a user