1
0
forked from VimPlug/jedi

fix Name (instead of Param) as param key

This commit is contained in:
David Halter
2013-02-10 23:57:20 +01:00
parent 5722cd2382
commit da4ad7fd3f
3 changed files with 5 additions and 6 deletions

View File

@@ -598,11 +598,12 @@ def follow_call_list(call_list, follow_array=False):
# comprehensions
result += follow_statement(stmt)
else:
if isinstance(call, (pr.Lambda)):
if isinstance(call, pr.Lambda):
result.append(er.Function(call))
# With things like params, these can also be functions...
elif isinstance(call, (er.Function, er.Class, er.Instance,
dynamic.ArrayInstance)):
# TODO this is just not very well readable -> fix, use pr.Base
result.append(call)
# The string tokens are just operations (+, -, etc.)
elif not isinstance(call, (str, unicode)):