Commit Graph

91 Commits

Author SHA1 Message Date
Dave Halter
e6b9111749 Python 2.7 compatibility. 2015-01-13 02:12:49 +01:00
Dave Halter
ef0958a43c Temporarily change the behavior of a defined names test. Hard to say how we really want it to behave. 2014-12-11 00:44:31 +01:00
Dave Halter
bb7bbf51ec Deprecate jedi.defined_names in favor of jedi.names. 2014-12-11 00:41:36 +01:00
Dave Halter
7cc2a07cd3 Small full_name improvements. 2014-12-08 12:38:59 +01:00
Dave Halter
8868b87d42 Make imports stuff in API classes work. Now goto on imports follows even aliases. 2014-12-08 12:04:09 +01:00
Dave Halter
0ad6aeba6b Fix some API classes issues. Among them call signature generation and Definition.parent() issues. 2014-12-08 02:32:43 +01:00
Dave Halter
6ad9c5ee76 Small fixes to the parser tests. 2014-12-08 00:58:28 +01:00
Dave Halter
0c77e9960a NotFoundError doesn't really exist anymore. We're deprecating it, so change the corresponding tests. 2014-12-08 00:48:06 +01:00
Dave Halter
b24bf29fc2 Fixed named argument call signature stuff and issues with classes and call signature params. 2014-12-07 23:55:44 +01:00
Dave Halter
ab254bbcba Call signature search progress. 2014-12-05 00:23:59 +01:00
Dave Halter
8ca48f03db Tests for imports and is_definition. 2014-10-02 11:14:03 +02:00
Dave Halter
99d35e57b6 Fix alias usages in goto_assignments. 2014-09-19 13:42:47 +02:00
Dave Halter
ed56f73836 Care for nested imports in goto_assignments. 2014-09-19 12:14:29 +02:00
Dave Halter
fc5f73861c Fix issues with the os module.
Using a try/finally assures that the recursion checkers work the right way.
2014-09-19 10:59:24 +02:00
Dave Halter
83d2af5138 First imports are working with goto. 2014-09-19 01:21:17 +02:00
Dave Halter
610b2fc832 tests for goto on imports. 2014-09-19 00:49:22 +02:00
Dave Halter
7b0bb83d16 Change the behavior of eval_statement_element and follow_call_path. Arrays should only be looked at in the latter. 2014-09-18 23:44:11 +02:00
Dave Halter
69e6139527 Goto on named params in class calls is now working. 2014-09-18 20:11:58 +02:00
Dave Halter
ba80e35204 Test for an issue with named params in class calls (instead of functions). 2014-09-18 13:30:52 +02:00
Dave Halter
9fa6a86a19 Tests for Definition.is_definition(). 2014-09-17 18:17:22 +02:00
Dave Halter
0eea30f227 NamePart migration of Definition is complete. Now Completion. 2014-09-10 18:29:10 +02:00
Dave Halter
2aa538999e Removed an old test from the days where it was allowed to add Keywords to Definitions. 2014-09-10 18:05:04 +02:00
Dave Halter
43cf1d451f Python 2/3 compatibility issues that were not resolved in the latest commit. 2014-09-09 17:51:39 +02:00
Dave Halter
87aa76678a Goto should work on named params, too. 2014-09-09 16:48:53 +02:00
Dave Halter
740fd0657f Add a goto_assignments test for named params 2014-09-09 00:06:24 +02:00
Dave Halter
0dcb91d236 Add a Definition.is_definition function to be able to check if a name is a definition or not. 2014-09-08 23:44:35 +02:00
Dave Halter
851717a968 Publicize jedi.names and add a first test. 2014-09-08 22:39:47 +02:00
Dave Halter
ca536baf9b Last fixes, because of the Name.get_definition change. The recent parser.representation changes are now fully working and we're ready to improve Evaluator.goto again. 2014-09-06 13:23:00 +02:00
Dave Halter
ece9fdf4ae Fixing most of the issues that existed, because of the recent Name.get_definition/Call.name.parent change. 2014-09-06 13:02:52 +02:00
Dave Halter
bcc84820fe Fix issues with unreachable flows.
This benefits static analysis as well as autocompletion: Unreachable code (things like code within 'if 0:') should still be resolveable.
2014-09-03 00:05:37 +02:00
Dave Halter
8bde89cc58 Fix the remaining issues with the StatementElement.next refactoring. 2014-08-19 00:12:14 +02:00
Dave Halter
fb1dba269a re-enable the interpretation of the None keyword 2014-08-12 14:38:56 +02:00
Dave Halter
7b4a188948 fix a few small issues that remained in the tests 2014-07-31 17:34:35 +02:00
Dave Halter
81f3b940e8 dicts should not be used to check against in get_defined_names, because they cannot contain a defined name (lists and tuples can) so just ignore them., fixes #417 2014-07-18 15:37:10 +02:00
Dave Halter
4626a8b6df test for #417 2014-07-18 15:23:47 +02:00
Fredrik Bergroth
d3ac1e902e Always cast pr to er in _follow_statements_imports 2014-06-11 23:49:36 +02:00
Dave Halter
b5b79fc818 partial support for *args/**kwargs in CallSignature.index, fixes #395 2014-05-05 00:12:43 +02:00
Dave Halter
f2af053a4a fix the CallSignature.index attribute 2014-05-04 23:36:24 +02:00
Dave Halter
16fd7f5424 create a more specific test for #396, which is again a fast parser issue 2014-05-04 15:53:53 +02:00
Dave Halter
672594514e call_signature/completion interference issues 2014-05-04 13:12:49 +02:00
Dave Halter
065e9a001d call signature test change to avoid version changes of python 3.2.5 (int docstrings have changed, travis has updated since) 2014-05-03 20:12:39 +02:00
Dave Halter
2205117f92 test for #397, something raises ModuleNotFound if we use Definition.type 2014-04-30 16:58:27 +02:00
Dave Halter
81cc50e8b5 well yeah give NamePart a get_code method after all, makes sense, because all the other parser representation objects have it. 2014-04-20 14:32:48 +02:00
Dave Halter
bb6874bc7c fix for problems with incomplete one liner string literals, after a start of an incomplete string literal the whole line should be seen as an error token 2014-04-19 13:56:29 +02:00
Dave Halter
33fa2b0cb4 call_signatures should work on more nested edge cases 2014-04-18 17:17:10 +02:00
Dave Halter
99b1ad18b4 test for davidhalter/jedi-vim#268, Definition objects should be unique per position. This was fixed a few commits ago by the whole usage fixes. 2014-04-18 15:10:57 +02:00
Dave Halter
0582979db5 documentation to docstring, #395 2014-04-17 14:13:47 +02:00
Dave Halter
ddc1cb0e6a same problem with KeywordStatement 2014-04-16 10:28:12 +02:00
Dave Halter
15fdecdb61 for flows triggered an exception if goto_assignments was used on the keyword. found with the help of sith.py 2014-04-16 09:57:01 +02:00
Dave Halter
17345b6e78 reduce/remove getitem side effects, tests for #297 2014-04-07 16:06:07 +02:00