1
0
forked from VimPlug/jedi
Commit Graph

111 Commits

Author SHA1 Message Date
Dave Halter
142f6652b5 Move toward ParserWithRecovery for the completion context.
It was simply not possible to do it with the normal parser, because of dedents.
2016-07-28 23:14:24 +02:00
Dave Halter
fc7fd9d989 Fix some more fast parser issues. 2016-07-25 18:29:01 +02:00
Dave Halter
2d544c51c6 Better completions in comments. 2016-07-25 09:58:04 +02:00
Dave Halter
aeb734564c Finally fix all tests. 2016-07-25 00:15:58 +02:00
Dave Halter
ebbaaf7ad2 Fix some more problems with the fast parser. 2016-07-24 23:44:26 +02:00
Dave Halter
ff47fab62a Remove Whitespace class and replace it with Newline and Endmarker. 2016-07-24 17:16:36 +02:00
Dave Halter
7f2f66f011 Trying to refactor the completion stack finding. 2016-07-24 17:06:54 +02:00
Dave Halter
baa745a6ac A minor issue for getting the stack at a position, fixes #590. 2016-07-08 08:39:36 +02:00
Dave Halter
9245181a8c Some python 2.7 (and 3.3) compatibility improvements. 2016-07-03 02:54:21 +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
Dave Halter
bb4ab45131 Don't use UserContextParser.user_stmt anymore, since we can access it directly. 2016-06-23 16:36:12 +02:00
Dave Halter
73e71b3c1a Finally able to remove the user_context. This is awesome!
Now we only use the syntax tree to understand where the user is doing something.
2016-06-23 16:26:28 +02:00
Dave Halter
9225db084a user_context is not needed anymore for completions. yay! 2016-06-23 09:19:20 +02:00
Dave Halter
57b1fdaa26 Remove code that's not used anymore. 2016-06-22 00:31:36 +02:00
Dave Halter
6fec29d778 All tests except the Interpreter tests are working again. 2016-06-22 00:27:21 +02:00
Dave Halter
8e67facecc Refactoring: call_of_name -> call_of_leaf. 2016-06-21 18:42:20 +02:00
Dave Halter
5212849780 Fix the last known case of call signatures. Yay! 2016-06-20 18:32:44 +02:00
Dave Halter
e0631cfda2 Add new tests and certain fixes for some new call signature issues. 2016-06-20 18:20:35 +02:00
Dave Halter
fa13889e70 Fix the latest call signature tests. 2016-06-20 08:26:18 +02:00
Dave Halter
389885c285 Fix some of the newer call_signature tests. 2016-06-18 00:47:53 +02:00
Dave Halter
7ddc9c9c78 Fix all call signature tests. 2016-06-17 17:03:34 +02:00
Dave Halter
32346c6da8 A lot of call signature refactorings. Note that this commit is totally broken. 2016-06-17 00:20:13 +02:00
Dave Halter
118ba7d833 A lot of stuff is not needed anymore, because of the recent refactorings. 2016-06-14 08:31:36 +02:00
Dave Halter
a485412af0 Rename goto_definition to goto_definitions. 2016-06-11 23:16:44 +02:00
Dave Halter
c82691a12b Make goto_definitions a lot simpler. 2016-06-11 23:13:04 +02:00
Dave Halter
87a75fdfe4 Remove old unused code. 2016-06-06 09:27:43 +02:00
Dave Halter
7a170532d9 Now finally all tests are running again (except the repl completion, which is a separate issue). 2016-06-06 09:22:50 +02:00
Dave Halter
6b63b9cf54 Further fixes for failing tests. 2016-06-04 00:59:17 +02:00
Dave Halter
5edcf47512 Break Interpreter completion even more in favor of a better solution in the future. 2016-06-03 19:31:42 +02:00
Dave Halter
ad8d730a57 More test fixes. 2016-05-31 01:12:07 +02:00
Dave Halter
c12dbe0b9e Fix a few tests that failed, because they were not correct python (the context was wrong). 2016-05-30 20:10:17 +02:00
Dave Halter
4f6368e7eb Now ErrorLeaf and ErrorNode are part of the syntax tree. This makes probably sense. The documentation will follow once it's clear how they will shape out. 2016-05-30 00:34:58 +02:00
Dave Halter
daa68b66ad Fix a few issues caused by the refactoring. 2016-05-29 19:49:35 +02:00
Dave Halter
feef45f4bb Fixed all on_import tests. 2016-05-29 12:08:53 +02:00
Dave Halter
4714b464a6 Further import completion improvements. 2016-05-28 02:08:43 +02:00
Dave Halter
cbba314286 Progress and actually passing a few tests. 2016-05-26 00:10:54 +02:00
Dave Halter
d4a10929e2 Starting to create a way of how context sensitive completions can be made.
This involves playing heavily with the parser pgen2. We use its stack to check for all possible tokens/keywords.
2016-05-23 18:11:44 +02:00
Dave Halter
055ff8be23 Readability for completion parts. 2016-05-19 11:33:17 +02:00
Dave Halter
53490991d7 Goto_definitions bug fix -> imports stuff. 2015-02-27 11:56:36 +01:00
Dave Halter
1fb13837c4 Fix import completion issues. 2014-12-18 02:55:03 +01:00
Dave Halter
003d1249c5 empty import statement completion. 2014-12-11 15:24:19 +01:00
Dave Halter
d6b2a64343 Some small import completion fixes. 2014-12-11 13:00:57 +01:00
Dave Halter
48d2e99e55 os.path handling. 2014-12-11 01:49:59 +01:00
Dave Halter
5cc9dd57a6 Finally fixed the last on_import issue, which was that goto was not working on incomplete import statements. Still a bit messy, though. 2014-12-08 15:02:35 +01:00
Dave Halter
034d782e65 Last few on_import fixes. 2014-12-08 14:15:21 +01:00
Dave Halter
d6595ad020 Fixed more parser tests. 2014-12-08 00:36:09 +01:00
Dave Halter
f0c430e20c On import problem with name completion of modules. 2014-12-08 00:16:01 +01:00
Dave Halter
f24a3bf997 Fix on_import tests. 2014-11-26 03:07:41 +01:00
Dave Halter
a940c31a86 Improvments to on import completion. 2014-11-26 02:13:24 +01:00
Dave Halter
5d82b11f59 First implementation to be ready to complete corrupt imports. Working ok. 2014-11-25 19:35:27 +01:00