Commit Graph

4874 Commits

Author SHA1 Message Date
Dave Halter
8059c3c2c8 Save a module instead of a parser when pickling. 2017-03-30 00:55:04 +02:00
Dave Halter
932703f04a Remove an import that is not needed anymore. 2017-03-28 02:09:38 +02:00
Dave Halter
ee47be0140 Merge Parser and ParserWithRecovery. 2017-03-28 02:08:16 +02:00
Dave Halter
1d0796ac07 Remove a usage of the old module path. 2017-03-28 01:43:40 +02:00
Dave Halter
6a9c2f8795 Start using ContextualizedNode for py__iter__. 2017-03-28 01:34:07 +02:00
Dave Halter
bb9ea54402 Remove ImplicitTuple. 2017-03-27 23:18:06 +02:00
Dave Halter
8a35a04439 Remove the module path from the parser tree.
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter
b60ec024fa Remove start_parsing completely from the Parsers. 2017-03-26 12:52:37 +02:00
Dave Halter
63cafeaa87 Remove all usages of start_parsing=True in the fast parser. 2017-03-26 12:49:40 +02:00
Dave Halter
3d27d06781 Use the new parse method instead of a Parser. 2017-03-26 11:49:17 +02:00
Dave Halter
5c54650216 Code to source. 2017-03-26 01:50:19 +01:00
Dave Halter
aff0cbd68c Remove the last usage of save/load_parser in jedi. 2017-03-26 01:48:45 +01:00
Dave Halter
fb8ffde32e Fix an issue in the parse call. 2017-03-26 01:26:01 +01:00
Dave Halter
7874026ee5 A lot of work toward a better diff parser API. 2017-03-25 01:51:03 +01:00
Dave Halter
ac0d0869c9 Start using the parse function for caching as well. 2017-03-24 01:52:55 +01:00
Dave Halter
fb4cff8ef9 A small buildout script refactoring. 2017-03-23 14:22:27 -07:00
Dave Halter
5aa379945e Merge the FileNotFoundError cache. 2017-03-23 14:22:19 -07:00
Andy Lee
eb9af19559 Add test for loading deleted cache file 2017-03-23 08:17:11 -07:00
Andy Lee
3a851aac8c Catch FileNotFoundError when opening file cache 2017-03-23 08:16:51 -07:00
Dave Halter
6fef385774 Clean the path in pickling. 2017-03-23 08:52:25 +01:00
Dave Halter
26cce4d078 Add the grammar as an argument to saving the parser.
This makes collisions of different grammars when loading from the cache impossible.
2017-03-22 18:32:49 +01:00
Dave Halter
c41bee4253 Trying to ideas to reshape the diff parser APIs. 2017-03-22 09:38:06 +01:00
Dave Halter
2cb565561d Replace the diff parser imports with the modified path. 2017-03-21 22:10:01 +01:00
Dave Halter
3a2811fbe8 Move the diff parser. 2017-03-21 22:03:58 +01:00
Dave Halter
6f01264ed3 Restructure import's module loading. 2017-03-21 17:20:10 +01:00
Dave Halter
ff90beca6b Remove some documentation that was not necessary. 2017-03-20 21:10:49 +01:00
Dave Halter
d218acee6b Create a default implementation of leafs. 2017-03-20 19:34:48 +01:00
Dave Halter
c6811675b6 Rename ast_mapping to node_map. 2017-03-20 08:55:18 +01:00
Dave Halter
2d7fd30111 Remove _remove_last_newline from the parser. 2017-03-20 08:49:30 +01:00
Dave Halter
9dedb9ff68 Don't start parsing in our own API. 2017-03-20 08:44:52 +01:00
Dave Halter
53b4e78a9b Make some stuff private in the pgen parser API. 2017-03-20 08:36:11 +01:00
Dave Halter
689af9fc4e Remove tokens initialization parameter from the parser api. 2017-03-20 08:34:07 +01:00
Dave Halter
42e8861798 Simplify the parse method. 2017-03-19 22:15:01 +01:00
Dave Halter
b4af42ddb3 Some minor parser changes to get ready for bigger stuff. 2017-03-19 21:30:41 +01:00
Dave Halter
3163f4d821 Trying to start moving more stuff to the BaseParser. 2017-03-19 21:06:51 +01:00
Dave Halter
dad40597c5 Start moving stuff to the parser. 2017-03-18 15:01:34 +01:00
Dave Halter
52d855118a Remove get_parsed_node from the parser as well. 2017-03-18 03:55:23 +01:00
Dave Halter
0f66a3c7a8 Remove the module attribute from the parser. 2017-03-18 03:53:34 +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
aaf6c61e69 Make remove_last_newline private. 2017-03-18 03:07:01 +01:00
Dave Halter
519fa9cfb5 Remove complicated merging of used names from the parser.
It's a lot of complicated code and a lot can go wrong. It also didn't speed up anything. If anything it made things like 5% slower. I have tested this with:

./scripts/diff_parser_profile.py wx._core.py

wx._core.py is not part of Jedi.
2017-03-16 22:00:01 +01:00
Dave Halter
ce41119051 Fix some stuff in a diff profile test script. 2017-03-16 21:45:51 +01:00
Dave Halter
8156a6b8a2 Remove used_names from the parser step. It's a separate iteration, now. 2017-03-16 21:28:42 +01:00
Dave Halter
fd50146f92 Simple cleanup. 2017-03-16 20:20:58 +01:00
Dave Halter
96c67cee26 Simplify the leaf with newlines stuff. 2017-03-16 20:18:30 +01:00
Dave Halter
4573ab19f4 Separate the python syntax tree stuff from the non python stuff. 2017-03-16 19:54:08 +01:00
Dave Halter
448bfd0992 Move the python parser tree. 2017-03-16 17:20:32 +01:00
Dave Halter
b136800cfc Don't use as in imports when not needed. 2017-03-16 08:45:12 +01:00
Dave Halter
06702d2a40 Move the python parser. 2017-03-16 08:40:19 +01:00
Dave Halter
a83b43ccfd Merge branch 'dev' of github.com:davidhalter/jedi into dev 2017-03-15 19:12:51 +01:00