1
0
forked from VimPlug/jedi
Commit Graph

125 Commits

Author SHA1 Message Date
Dave Halter
6b7ce590fa Simplify get_parent_scope 2014-08-12 01:37:58 +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
f1711f8f9c possible direction of branch checks for name resolution. 2014-08-10 13:17:37 +02:00
Dave Halter
e58dc0a3d9 simplify evaluator.execute, because now everything is using py__call__ 2014-07-30 15:40:10 +02:00
Dave Halter
373ff2c45a fix most issues related to the py__call__ stuff and generalize it. 2014-07-30 15:23:41 +02:00
Dave Halter
1e6a950aec further progress in changing to py__call__ 2014-07-30 14:40:56 +02:00
Dave Halter
ccd304bcb7 start switching to a more python similar approach of naming, start by naming execution stuff py__call__ 2014-07-30 14:06:32 +02:00
Danilo Bargen
c97e1732ee Operator statement wrapper was missing (fixes #436) 2014-07-27 12:53:18 +02:00
Dave Halter
ea370a083d more consequent usage of scope_names_generator 2014-07-03 11:41:33 +02:00
Dave Halter
aba4a16ae3 fix indexing issues for multiple index options 2014-06-27 11:23:46 +02:00
Dave Halter
d5758adb2b fix list comprehensions. they were not implemented in a good way 2014-06-12 11:10:10 +02:00
Dave Halter
f8b79b3dd0 work in progress refactoring to make ListComprehension a sublass of ForFlow 2014-06-12 10:13:49 +02:00
Dave Halter
43e54b6173 list comprehensions should be able to serve as an input for dynamic params as well. 2014-06-11 21:54:18 +02:00
Dave Halter
081fa79d9b fix issues with generator comprehensions used directly with a send() call or something similar 2014-06-10 00:56:51 +02:00
Dave Halter
af801ef9b4 make generator comprehensions work 2014-06-10 00:36:36 +02:00
Dave Halter
0b926ca454 get rid of is_list_comp boolean in favor of a direct check of ListComprehensionFlow 2014-06-09 20:19:31 +02:00
Dave Halter
dd8e4341db create a ListComprehensionFlow, to make the distinction between ForFlow and list comprehensions clearer 2014-06-09 20:09:53 +02:00
Dave Halter
9bcc4f8fd2 static analysis is now able to tell the difference between NameError/AttributeError 2014-05-13 16:14:32 +02:00
Dave Halter
b6ec589997 refactor general array lookup method get_index_types 2014-05-12 15:23:48 +02:00
Dave Halter
70d85d1b3a strip_imports -> follow_imports 2014-05-12 11:18:47 +02:00
Dave Halter
9eb75f9c61 static analysis prototype decription 2014-05-07 12:39:18 +02:00
Dave Halter
23b4a89d1d slices should be ignored in __getitem__ settings (for now) 2014-04-28 18:15:25 +02:00
Dave Halter
70efa159f2 fix for slices which have been screwed up in a few previous commits... again... 2014-04-22 10:21:15 +02:00
Dave Halter
eaf54942fc fix a slice issue with precedences. 2014-04-21 02:30:17 +02:00
Dave Halter
240b0c9581 NamePart doesn't have an __eq__ method anymore 2014-04-18 14:36:10 +02:00
Dave Halter
6a40c9b671 remove get_set_vars completely from existance 2014-04-14 12:40:59 +02:00
Dave Halter
4bc55be103 significant speedup due to compiled caching 2014-04-13 16:31:38 +02:00
Dave Halter
840a806246 generalize import optimizations and make them behave more like sys.modules 2014-04-10 15:21:23 +02:00
Dave Halter
f7e236971b moved the input of get_index_types to a more typical type system 2014-04-04 12:09:46 +02:00
Dave Halter
84fde13b84 implemented a first prototype of a slicing and index creation function 2014-04-03 21:10:42 +02:00
Dave Halter
29435852e6 trying to clean up the goto mess 2014-03-28 13:46:36 +01:00
Dave Halter
18e5a3ad4f document a goto part of the API 2014-03-11 16:08:20 +01:00
Dave Halter
cffdcd2571 correct developer documentation a little bit 2014-03-11 15:38:46 +01:00
Dave Halter
937ab602ae add a lambda integration testing file 2014-03-11 11:59:17 +01:00
Dave Halter
5eef23046b clean up 2014-03-11 11:38:08 +01:00
Dave Halter
db1b73d423 lo and behold - reversed is implemented - the force is strong with this one. fixes #24 2014-03-11 11:04:00 +01:00
Dave Halter
6c5e91da69 some code - just written for @dbrgn 2014-03-10 23:08:09 +01:00
Dave Halter
af7814c6d4 enable assignment operators and add substraction support for numbers 2014-03-10 16:51:47 +01:00
Dave Halter
62a14f7558 restructure NameFinder.filter_name a little bit 2014-03-10 15:57:01 +01:00
Dave Halter
4e314409c1 remove position argument of follow_path 2014-03-10 00:44:15 +01:00
Dave Halter
cc667e76dc start_pos is usually not needed to search in modules, but if we generalize that, things get a lot slower - tests still pass - but the slowness is probably due to some weird recursion catching that now happens and that Jedi runs into, e.g. check ./run.py std 27 --debug 2014-03-10 00:40:57 +01:00
Dave Halter
35548cbf3c clean up the new _eval_statement_element method 2014-03-09 02:44:23 +01:00
Dave Halter
e2832e1172 fix multiplication of arrays with precedences 2014-03-09 02:23:38 +01:00
Dave Halter
61fa9b7fb4 start using precedences, working good with only a few test fails 2014-03-09 02:10:59 +01:00
Dave Halter
29cfdfeab1 precedence integration preparation 2014-03-08 23:43:29 +01:00
Dave Halter
65ce609a3c protect token_list -> _token_list 2014-03-04 12:43:37 +01:00
Dave Halter
1eba63760e more change to simplify the statement parser 2014-02-27 16:58:08 +01:00
Dave Halter
6577fa4336 just check for unicode, the parser doesn't know str anymore :) 2014-02-27 00:31:41 +01:00
Dave Halter
fdabca20e9 fix get_code method for Operator (still ugly, though) 2014-02-26 22:23:21 +01:00
Dave Halter
3330e29748 more problems fixed that relate to Operator 2014-02-26 22:08:51 +01:00