1
0
forked from VimPlug/jedi
Commit Graph

19 Commits

Author SHA1 Message Date
Dave Halter
5e28d69437 Fix remaining usage issues. 2014-09-10 17:15:58 +02:00
Dave Halter
4060c4dc55 Fix some goto issues. 2014-09-10 16:39:09 +02:00
Dave Halter
fb10199f37 Remove search_name and search_name_part from goto returns.
The search_name can be retrieved by checking definitions for it. Definitions should always be names or even better name_parts in case of goto. Therefore we can just get it there.
2014-09-03 23:28:19 +02:00
Dave Halter
18204c4c19 By trying to get rid of search_name in usages, we had to fix an issue with imports:
If used like 'follow(is_goto)', it could return a ModuleWrapper instead of a Name, which is what we actually want.
2014-09-03 19:30:00 +02:00
Dave Halter
8006d6f190 Change implementation of StatementElement.
Instead of having both next and execution as attributes, we now only have next, because it's an execution if there's an array.
2014-08-18 22:25:55 +02:00
Dave Halter
33e5a3280a Remove IsScope in favor of an is_scope function.
This function was partially implemented anway. Now we've also added a function called 'get_parent_scope', to make it easy to get a scope of a Call, Statement, whatever.
2014-08-12 01:19:19 +02:00
Dave Halter
e5fe726862 imports cleanup & documentation 2014-05-12 11:15:17 +02:00
Dave Halter
e5326acf8f ImportPath -> ImportWrapper 2014-04-30 17:15:59 +02:00
Dave Halter
8edaea31e2 simplify some usage stuff 2014-04-29 14:01:24 +02:00
Dave Halter
bc7896f93d unicode issues in usage matching 2014-04-29 12:20:25 +02:00
Dave Halter
0301606d18 Now remove Usage completely. 2014-04-18 14:45:03 +02:00
Dave Halter
240b0c9581 NamePart doesn't have an __eq__ method anymore 2014-04-18 14:36:10 +02:00
Dave Halter
c2bdda339b again Definition/Usage merging 2014-04-18 01:51:09 +02:00
Dave Halter
b643325889 type of NamePart in definition should work. 2014-04-18 01:31:07 +02:00
Dave Halter
5f4c4de229 Usage is now a subclass of Definition, #395 2014-04-17 14:39:22 +02:00
Dave Halter
6a40c9b671 remove get_set_vars completely from existance 2014-04-14 12:40:59 +02:00
Dave Halter
ced5b6ca82 goto_assignments and usages both working now with issues like #315 2014-03-29 16:37:39 +01:00
Dave Halter
600371632f NamePart is now no str subclass anymore. They are separated, which makes us save a lot of dicts 2014-02-13 19:22:36 +01:00
Dave Halter
f6b1e5635e move usages to its own api module usages 2014-01-26 23:04:38 +01:00