1
0
forked from VimPlug/jedi

integrate memoize caches into evaluator

This commit is contained in:
Dave Halter
2013-12-24 18:46:40 +01:00
parent 066056fb2b
commit ab2c6bf45d
8 changed files with 83 additions and 80 deletions

View File

@@ -63,6 +63,7 @@ from jedi import common
from jedi import debug
from jedi.parser import fast as fast_parser
from jedi.evaluate import imports
from jedi.evaluate.cache import memoize_default
# This is something like the sys.path, but only for searching params. It means
# that this is the order in which Jedi searches params.
@@ -140,7 +141,7 @@ class ParamListener(object):
self.param_possibilities.append(params)
@cache.memoize_default([])
@memoize_default([])
def search_params(param):
"""
This is a dynamic search for params. If you try to complete a type:
@@ -299,7 +300,7 @@ def _scan_statement(stmt, search_name, assignment_details=False):
return result
@cache.memoize_default([])
@memoize_default([])
def _check_array_additions(compare_array, module, is_list):
"""
Checks if a `pr.Array` has "add" statements: