generators used to get names

This commit is contained in:
David Halter
2012-05-02 13:43:45 +02:00
parent 80f2a3518d
commit 532c78b024
5 changed files with 43 additions and 36 deletions

View File

@@ -187,7 +187,10 @@ def complete(source, row, column, source_path):
try:
stmt = r.top.statements[0]
except IndexError:
completions = evaluate.get_names_for_scope(scope)
scope_generator = evaluate.get_names_for_scope(scope)
completions = []
for name_list in scope_generator:
completions += name_list
#for c in completions:
# if isinstance(, parsing.Function):
# print c.parent