1
0
forked from VimPlug/jedi
This commit is contained in:
Dave Halter
2014-08-03 23:00:32 +02:00
parent 6e5d80a6b2
commit 7bba12e8c5
2 changed files with 6 additions and 1 deletions

View File

@@ -99,6 +99,11 @@ def search_params(evaluator, param):
pos = None
from jedi.evaluate import representation as er
for scope in scopes:
# Not resolving decorators is a speed hack:
# By ignoring them, we get the function that is
# probably called really fast. If it's not called, it
# doesn't matter. But this is a way to get potential
# candidates for calling that function really quick!
s = evaluator.find_types(scope, func_name, position=pos,
search_global=not first,
resolve_decorator=False)

View File

@@ -1,5 +1,5 @@
"""
Searcjing for names with given scope and name. This is very central in Jedi and
Searching for names with given scope and name. This is very central in Jedi and
Python. The name resolution is quite complicated with descripter,
``__getattribute__``, ``__getattr__``, ``global``, etc.