1
0
forked from VimPlug/jedi

Do some parser tree caching. This might be important for recursions.

This commit is contained in:
Dave Halter
2017-09-05 19:00:37 +02:00
parent 16ad43922f
commit 8d06e9f9c9
3 changed files with 12 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
from jedi.evaluate.cache import evaluator_function_cache
@evaluator_function_cache()
def get_yield_exprs(evaluator, funcdef):
return list(funcdef.iter_yield_exprs())