1
0
forked from VimPlug/jedi
Commit Graph

6017 Commits

Author SHA1 Message Date
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
0f01242954 named param goto. 2014-12-08 01:52:32 +01:00
Dave Halter
6ad9c5ee76 Small fixes to the parser tests. 2014-12-08 00:58:28 +01:00
Dave Halter
dffce937f2 With the old parser we did more complicated checking for invalid statements, now the new parser does it by itself. Therefore we can stop doing crazy regex stuff in the API. 2014-12-08 00:52:40 +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
d6595ad020 Fixed more parser tests. 2014-12-08 00:36:09 +01:00
Dave Halter
fe8a99dfd5 Fix the parser tests. 2014-12-08 00:32:38 +01:00
Dave Halter
34c9422749 The parser tests should also give the parser a grammar. 2014-12-08 00:22:33 +01:00
Dave Halter
f0c430e20c On import problem with name completion of modules. 2014-12-08 00:16:01 +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
bb747a83e8 Small fix with big impact for the previously done simple_stmt error recovery. Now it actually works. 2014-12-07 19:45:19 +01:00
Dave Halter
2b7434342e Fix absolute imports. 2014-12-07 18:51:14 +01:00
Dave Halter
eead122636 Use grammar in test scripts. 2014-12-07 18:22:11 +01:00
Dave Halter
6058855dd3 test_helpers doesn't make sense anymore, because those the only test it consisted of, was a test with StatementElement, which does not exist anymore in the new parser. 2014-12-07 18:15:18 +01:00
Dave Halter
e3ab56504e Fixed and simplified flask imports. 2014-12-07 18:11:05 +01:00
Dave Halter
db636c35ae Error recovery should not delete parts of simple_stmt. 2014-12-07 18:04:55 +01:00
Dave Halter
33b39c2b5d Don't use the old setup_function/teardown_function pytest stuff. It's very implicit and hard to understand. 2014-12-07 17:21:52 +01:00
Dave Halter
49b34b4d01 Stuff mostly related to namespace packages. 2014-12-07 16:51:54 +01:00
Dave Halter
528b325c39 Remove precedence tests. They are not needed anymore, since precedence is now handled by the parser itself. 2014-12-07 14:41:57 +01:00
Dave Halter
b94a09f360 Fix end_pos of Literals and Whitespace leafs. 2014-12-07 14:28:40 +01:00
Dave Halter
fe1d7b7030 Replace the old tokenizer tests with the refactored attributes. 2014-12-07 14:19:21 +01:00
Dave Halter
ea4f7053d6 Fix completion/definition.py tests. 2014-12-07 14:13:59 +01:00
Dave Halter
e1e5c3a6c7 Progress with call signatures. 2014-12-07 13:56:40 +01:00
Dave Halter
24903739f2 A first implementation of call signatures. 2014-12-05 16:05:54 +01:00
Dave Halter
ab254bbcba Call signature search progress. 2014-12-05 00:23:59 +01:00
Dave Halter
24c7142810 Fix issues with scope ordering in classes/functions. 2014-12-04 18:49:09 +01:00
Dave Halter
774ade955d Fixing for loop additions. 2014-12-04 17:58:01 +01:00
Dave Halter
a96d1b8d0f fix something with not/- prefixes. 2014-12-04 17:51:14 +01:00
Dave Halter
478acf8ccf partial is working partially now with the new parser, because invalid statements are not possible anymore (two times **kwargs) 2014-12-04 14:29:37 +01:00
Dave Halter
8f1002218d Very temporary solution for doing deep_ast_copy. 2014-12-04 11:19:33 +01:00
Dave Halter
aa9057be38 Small fix for builtins. 2014-12-04 02:01:30 +01:00
Dave Halter
1725abb1fd Fix issues with docstrings. 2014-12-03 20:30:03 +01:00
Dave Halter
f1431cef40 Decorator fixes. 2014-12-03 17:09:30 +01:00
Dave Halter
09ad3411da Goto fixes. 2014-12-03 17:01:29 +01:00
Dave Halter
6314b80abd Some goto refactorings. 2014-12-03 16:52:05 +01:00
Dave Halter
b2267d3878 Fix usages. 2014-12-03 16:34:31 +01:00
Dave Halter
6bf154de5e Better goto for imports, which helps usages. 2014-12-03 16:15:31 +01:00
Dave Halter
536c188192 Change get_self_vars. Now using py__mro__ to avoid recursions. 2014-12-03 13:04:53 +01:00
Dave Halter
b9e7a2eb95 Fix assert issues in combination with comprehensions. 2014-12-02 17:55:42 +01:00
Dave Halter
5f89ceb385 Add the type attribute to all classes in the tree. Because nodes have them as well. 2014-12-02 17:50:55 +01:00
Dave Halter
425741e285 Fix assertion/isinstance type information. 2014-12-02 17:45:19 +01:00
Dave Halter
cf0407e164 Add 'if isinstance' type information. 2014-12-02 17:34:36 +01:00
Dave Halter
99febfe6c2 Fixed a very nasty bug in deep_ast_copy. 2014-12-02 04:19:22 +01:00
Dave Halter
235672efc1 Fix an issue for stdlib regex completion. deep_ast_copy had a bug and also changed the way how decorators work. 2014-12-01 18:09:21 +01:00
Dave Halter
2515d283be __getitem__ in instances. 2014-12-01 15:41:13 +01:00
Dave Halter
0ab9d331f8 Issues with dictionary/list/tuple literal methods. 2014-12-01 15:36:36 +01:00
Dave Halter
e51a393e4c Fix reversed. 2014-12-01 12:41:47 +01:00
Dave Halter
3cc4da28ed Fix lambda_nocond. 2014-12-01 11:56:28 +01:00
Dave Halter
bcd998ae02 Lambdas are own namespaces and deserve their own used_names dictionary in the parser. 2014-12-01 11:49:52 +01:00