Commit Graph

2169 Commits

Author SHA1 Message Date
Dave Halter
969100e471 Move the parsing away from user_context to api.py. 2016-06-27 08:48:36 +02:00
Dave Halter
0445d51d34 Remove the user_scope from the user_context module. 2016-06-27 08:35:24 +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
1ab4eb3696 Exchange the completion trailer evaluation logic. It's way more consistent now. 2016-06-23 08:47:43 +02:00
Dave Halter
1355ea01b3 Simplify completions further to eventually get rid of user_context. 2016-06-22 09:15:32 +02:00
Dave Halter
8e67facecc Refactoring: call_of_name -> call_of_leaf. 2016-06-21 18:42:20 +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
b9d3371f39 Small refactoring of call signatures. 2016-06-20 08:44:56 +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
2ce66a9508 Imports belong to the top of the module. 2016-06-14 18:09:08 +02:00
Dave Halter
653f247a42 Fix a goto_definitions test. 2016-06-13 18:27:39 +02:00
Dave Halter
27f05de3b7 Fix a few more issues, mostly with the fast parser. 2016-06-13 18:21:17 +02:00
Dave Halter
c82691a12b Make goto_definitions a lot simpler. 2016-06-11 23:13:04 +02:00
Dave Halter
9930ab5056 Small fixes to make the tests pass again. 2016-06-11 16:50:05 +02:00
Dave Halter
4c711339dd The integration test runner is now using a different way of getting the supposed results.
This is needed, because goto_definition will not work in comments anymore.
2016-06-11 16:33:56 +02:00
Dave Halter
82c76fa689 Merge with the linter branch (especially the changes of pep484. 2016-06-07 13:51:25 +02:00
Dave Halter
6b9f96ce13 Keyword completion is now possible in a semantic way. This includes better testing and documentation. 2016-06-06 18:32:00 +02:00
Dave Halter
028d0a2509 After as ther should not follow any completions. 2016-06-06 18:08:45 +02:00
Dave Halter
4ec72d8f24 Finally fix the last remaining fast parser issue. 2016-06-06 08:55:10 +02:00
Dave Halter
436f7dffe0 Fix another very annoying fast parser issue. 2016-06-06 08:37:40 +02:00
Dave Halter
dd85fc6ffd Add error token in a normal way to the syntax tree as ErrorLeaf. 2016-06-05 14:49:57 +02:00
Dave Halter
aa97e4e714 Fix the fast parser issue #589. 2016-06-05 14:42:32 +02:00
Dave Halter
12f878a4f7 Test for the issue #589. 2016-06-04 01:06:13 +02:00
Dave Halter
c3ffaab8af The fast parser had some splitting issues. 2016-06-04 00:50:36 +02:00
Dave Halter
0c7894b3e6 Fix a few fast parser tests. 2016-06-02 08:24:52 +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
NAKAMURA Yoshitaka
127da66ae2 fix source_to_unicode py3 compatibility 2016-05-30 23:31:18 +09: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
a08ad2d53d Further improvements to the interpreter refactoring. 2016-05-19 01:41:06 +02:00
Dave Halter
1bb8d32084 Improve interpreter tests. 2016-05-18 11:56:33 +02:00
Dave Halter
d93d31feb8 Make a first test working with mixed objects. 2016-05-18 11:49:50 +02:00
Dave Halter
e21b3024e0 Writing tests for the upcoming side effect fixes in the interpreter completion. 2016-05-16 09:36:54 +02:00
Dave Halter
cc331d62e0 Get closer to fixing a lot of issues with the completion for repl. 2016-05-15 14:26:22 +02:00
Claude
4fe710d4d3 more tests 2016-02-15 18:02:11 +01:00
Claude
a9ebe71c64 add some tests to show that type-hints on the next line don't work 2016-02-15 17:54:20 +01:00
Claude
641fb80773 add support for 'with-assignment' hints 2016-02-15 17:52:21 +01:00
Claude
3a1b2e7104 add support for 'for-assignment' hints 2016-02-15 17:37:03 +01:00
Claude
8b28678d19 support tuple-assignment 2016-02-15 17:04:19 +01:00
Claude
a658f7940c typehints for variables in comments 2016-02-15 16:03:23 +01:00
Claude
daeee4ba0c simple typehints in comments 2016-02-15 15:12:07 +01:00
Claude
d5f08f8bdd opting for skipping PEP492 backwards compatibility magic, instead directly making await and async keywords
See discussion at
https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
2016-02-11 19:30:01 +01:00
Claude
7077d0b762 Using python 3.7-like parser, instead of python 3.5 magic.
See https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
Revert "Update tokenizer to adhere to PEP492 magic"

This reverts commit 65187930bd.
2016-02-11 19:14:31 +01:00
Claude
65187930bd Update tokenizer to adhere to PEP492 magic 2016-02-09 21:07:18 +01:00
Dave Halter
257009d238 Skip pep0484 tests when using Python 2.6. 2016-01-26 15:59:27 -02:00
Dave Halter
f9a64fd637 Fix some issues in Python 2.7 2016-01-26 14:59:40 -02:00