1
0
forked from VimPlug/jedi
Commit Graph

106 Commits

Author SHA1 Message Date
Peter Law
1418aada91 Annotate top level items mypy needs annotating 2020-07-24 16:10:34 +01:00
Dave Halter
8bde54a072 Remove underscore_memoization caching method 2020-01-25 17:29:52 +01:00
Dave Halter
5fc308f1f8 call signature -> signature 2019-12-20 19:41:57 +01:00
Dave Halter
862f611829 If the VIRTUAL_ENV variable changes, need to reload the default environment, fixes #1201, #1200 2018-09-30 19:07:48 +02:00
Dave Halter
ed2a0a8218 Document get_sys_path and change the signature of get_system_environment a bit 2018-04-15 16:12:07 +02:00
Dave Halter
22b0c0f1fe Rework the time cache. 2018-04-15 15:51:16 +02:00
Dave Halter
51d2ffb078 Use sys path mostly from project and move some sys path stuff around. 2017-10-05 10:06:28 +02:00
Dave Halter
9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter
35fd1c70bd Rename parser.utils to parser.cache. 2017-03-30 01:57:48 +02:00
Dave Halter
db364bc44d Move underscore memoization. 2017-03-30 01:53:18 +02:00
Dave Halter
ff90beca6b Remove some documentation that was not necessary. 2017-03-20 21:10:49 +01:00
Dave Halter
d0b6d41e99 Remove the old star import cache, because it's not even used. 2017-03-18 03:30:23 +01:00
Dave Halter
81e9403aef Delete more unused code. 2016-12-17 18:00:54 +01:00
Dave Halter
4ca3556c3b Fix the fundamentally wrong cache. 2016-10-16 04:04:31 +02:00
Dave Halter
00a8b3e4f1 Some more tests are passing. 2016-09-03 03:06:38 +02:00
Dave Halter
6f598b1157 Use the memoize function for faked arguments only when needed.
It's important to note that memoizing every object would mean that
theoretically all objects passed through get_faked would get memoized. This
would have been a possible memory leak, which we should avoid.
Obviously the previous solution proposed in #649 was still better, but this
issue was a new one. Also using str() around keys was not a good idea.

Refs #649.
2016-07-31 15:02:30 +02:00
ColinDuquesnoy
07f76a1703 Merge remote-tracking branch 'upstream/dev' into bugfix/performances_degradation
# Conflicts:
#	jedi/evaluate/compiled/fake.py
2016-07-21 10:41:11 +02:00
Dave Halter
52c42c3392 Reenable call signature caching and move a lot of parser specific caching to the parser itself. 2016-06-28 08:46:29 +02:00
ColinDuquesnoy
6e3b5dfb23 Add memoize_function to cache and use it in fake.get_faked
The previously added test should now pass.

Fix #591
2015-12-13 20:10:09 +01:00
Dave Halter
7af5c23874 Cache bug fixes. 2015-04-22 03:01:32 +02:00
Dave Halter
df9452f210 Trying to change the import logic completely. We now have a sys.modules like cache. 2015-04-20 14:47:33 +02:00
Dave Halter
23fe08363d Simplify cache_call_signatures. 2015-02-27 12:20:55 +01:00
Dave Halter
cdbe26786a Trying to get ird of the weird param generation in the parser tree. 2015-02-10 15:49:26 +01:00
Dave Halter
abe6c8934c Update the parser pickling protocol version. 2015-02-05 14:19:22 +01:00
Dave Halter
cc7483498c Start using the position modifier. 2015-01-15 14:18:22 +01:00
Dave Halter
ed3cf5577e Compiled objects should also have a names_dict. 2014-12-26 12:49:40 +01:00
Dave Halter
f2d35c3ff1 Reenable star import caching. 2014-12-15 15:19:22 +01:00
Dave Halter
24903739f2 A first implementation of call signatures. 2014-12-05 16:05:54 +01:00
Dave Halter
f43c371467 Merge @joel-wright's whitespace tokenizer branch. Thanks! 2014-11-26 15:56:11 +01:00
Dave Halter
71c3d34965 Increase ParserPickling.version. 2014-10-29 01:46:54 +01:00
Dave Halter
66840a742c Implement the new parser in jedi.parser.Parser 2014-10-10 00:06:28 +02:00
Dave Halter
e9a3a44780 Remove some other _star_import_cache stuff, and with this, #489 should be fixed. 2014-10-06 17:55:28 +02:00
Dave Halter
3638d5149d Change time_cache, to also host the star_import_cache. 2014-10-06 17:37:34 +02:00
Dave Halter
bbdb4703ec change cache_call_signatures, so that it has a well defined input. 2014-10-06 16:07:33 +02:00
Dave Halter
87574e9d2e star_import_cache refactorings: Make it more readable. 2014-10-04 12:43:08 +02:00
Dave Halter
a1b55a9df7 clear_caches -> clear_time_caches 2014-10-03 14:23:46 +02:00
Dave Halter
03e01631cc Remove NamePart from existance and rename it to Name. 2014-09-26 16:29:53 +02:00
Dave Halter
b68a59daef Fix the last remaining issues of the first part of the NamePart switch. 2014-09-09 15:58:20 +02:00
Dave Halter
5a3ee02399 Use ExprStmt pretty much everywhere where it should be used.
ExprStmt is now really a normal statement. All the other statements are from now on considered legacy code. As a side effect this increases the parser pickling version.
2014-09-06 11:13:58 +02:00
Dave Halter
8006d6f190 Change implementation of StatementElement.
Instead of having both next and execution as attributes, we now only have next, because it's an execution if there's an array.
2014-08-18 22:25:55 +02:00
Dave Halter
c44168f7ad add a Flow.previous attribute to be able to access the if flow from an else clause. 2014-08-05 11:17:18 +02:00
Joel Wright
07d0a43f7e Add preceding whitespace collection to tokenizer 2014-07-30 11:59:20 +01:00
Dave Halter
852cdad754 Operator fixes. Subclass of Simple, now. 2014-07-22 16:02:34 +02:00
Dave Halter
ee1c5041ed use the new implementation of splitlines all over the code, fixes #424 2014-07-18 16:59:22 +02:00
Dave Halter
0b926ca454 get rid of is_list_comp boolean in favor of a direct check of ListComprehensionFlow 2014-06-09 20:19:31 +02:00
Dave Halter
dd50001ed1 update pickling version, because we have changed some things about the KeywordStatement a while ago 2014-05-19 13:49:52 +02:00
Dave Halter
6bec7ce847 speed up Builtin lookups 2014-04-25 14:12:28 +02:00
Dave Halter
f0e7b5583d update parser pickling version again, because we've changed a lot in the last few commits 2014-04-18 14:41:29 +02:00
Dave Halter
d8d6b20a17 fix line split issues in cache 2014-04-09 13:16:28 +02:00
Dave Halter
46277eb9c9 call_signatures caching should be much more precise, now. fixes #390 2014-04-09 12:27:23 +02:00