getnames for scopes

This commit is contained in:
David Halter
2012-03-01 10:43:34 +01:00
parent 2c1108db1c
commit e8889ae420
3 changed files with 48 additions and 4 deletions

View File

@@ -222,7 +222,13 @@ showdbg()
print cmpl.parser.top.get_code()
#print cmpl.parser.top.subscopes[1].subscopes[0].get_code()
#print cmpl.parser.top.get_locals()
names = cmpl.parser.top.get_names()
for n in names:
try:
print n.names
except:
print n.name
p = cmpl.parser
s = p.top