1
0
forked from VimPlug/jedi
Commit Graph

750 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
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
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
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
09ad3411da Goto fixes. 2014-12-03 17:01:29 +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
3928f466cf Fix positioning of the user statements. 2014-11-29 16:20:12 +01:00
Dave Halter
cd7044cae3 Don't use NotFoundError anymore, since it's very ambiguous what that would imply. 2014-11-29 15:57:18 +01:00
Dave Halter
e1d6511f2f Trying to move the indent/dedent logic back into the tokenizer. 2014-11-28 02:04:04 +01:00
Dave Halter
cd1e07a532 The now passing on_import tests should not worsen the performance of the other tests. 2014-11-26 03:11:22 +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
149b4d8ad5 Import completion on syntactically correct imports. 2014-11-26 01:15:40 +01:00
Dave Halter
5d82b11f59 First implementation to be ready to complete corrupt imports. Working ok. 2014-11-25 19:35:27 +01:00
Dave Halter
9f45f18ad1 Added a grammar param to the parser. 2014-11-24 01:10:39 +01:00
Dave Halter
c152a1c58b Actually replace tree with representation (in all the imports). 2014-11-23 19:46:52 +01:00
Dave Halter
f1cbd45575 Usages are pretty solid now except for parser issues. 2014-11-22 15:43:23 +01:00
Dave Halter
b82e1e28e5 Get at least some usages stuff right. 2014-11-22 02:05:36 +01:00
Dave Halter
22fbcf6c77 More goto improvements. 2014-11-21 15:45:17 +01:00
Dave Halter
eb0bfb4381 get_code in Definition.description should not return first prefix. 2014-11-21 15:33:38 +01:00
Dave Halter
f604066288 First small implementation of goto. 2014-11-21 14:21:00 +01:00
Dave Halter
bb9d6b4832 Temporarily disable on import completion. Not sure if we're going to do it with the normal parser. 2014-11-19 13:24:45 +01:00
Dave Halter
1c240e75d3 Replace get_all_import_names with a leaf search method in Simple. 2014-11-19 01:31:08 +01:00
Dave Halter
afca0ef047 The user context parser should ignore keywords if they are not standing alone. 2014-10-30 01:56:08 +01:00
Dave Halter
1c09a90ac1 Disable usage of filter_private_variable for now. 2014-10-28 17:00:12 +01:00
Dave Halter
0def3afaaa A move function for Nodes. 2014-10-12 23:37:46 +02:00
Dave Halter
3bf1fec568 Start implementing an algorithm for actually evaluating the parser tree. 2014-10-10 11:29:22 +02:00
Dave Halter
bbdb4703ec change cache_call_signatures, so that it has a well defined input. 2014-10-06 16:07:33 +02:00
Dave Halter
a1b55a9df7 clear_caches -> clear_time_caches 2014-10-03 14:23:46 +02:00
Dave Halter
116e9e72fc is_definition/Import issue 2014-10-02 11:27:01 +02:00
Dave Halter
27444ed64d Remove Import.alias_name_part, it was simply an alias for another lookup. 2014-09-26 16:32:36 +02:00
Dave Halter
03e01631cc Remove NamePart from existance and rename it to Name. 2014-09-26 16:29:53 +02:00
Dave Halter
522c9eda90 Remove pr.Name completely. 2014-09-26 16:18:10 +02:00
Dave Halter
7fea6437d9 Fix issues with Definition.full_name 2014-09-26 13:07:21 +02:00
Dave Halter
4f4ac505a3 Fix isses with interpreter completions. 2014-09-26 13:07:08 +02:00
Dave Halter
4eaee09d6e Fix named param issues. 2014-09-26 11:52:26 +02:00
Dave Halter
59225ceaa3 usages issues. 2014-09-25 00:14:43 +02:00
Dave Halter
dae1a48d70 Remove a lot of the old Name.names usages in favor of a direct NamePart usage. 2014-09-22 22:34:33 +02:00
Dave Halter
6bd7ef56f1 Now most tests pass and we're able to continue getting rid of parsing.representation.Name. 2014-09-22 15:41:27 +02:00
Dave Halter
8f3301f281 Passing Function tests now. 2014-09-22 14:06:38 +02:00
Dave Halter
c4e45916c6 Modules also use a NamePart as a name, now. 2014-09-22 12:52:48 +02:00
Dave Halter
b2342c76be Refactoring: Make Import.get_all_import_names return NameParts. 2014-09-19 01:40:09 +02:00