1
0
forked from VimPlug/jedi
Commit Graph

121 Commits

Author SHA1 Message Date
Dave Halter
4ae99256be py3.0, py3.1 and py32 don't support unicode literals. Support those. 2014-04-22 16:00:13 +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
2b091076c1 fix the named param issue in the autocompletion 2014-04-19 22:57:41 +02:00
Dave Halter
547ec56bd3 remove NamePart.string, can be done by casting it to unicode 2014-04-18 14:40:28 +02:00
Dave Halter
240b0c9581 NamePart doesn't have an __eq__ method anymore 2014-04-18 14:36:10 +02:00
Dave Halter
b643325889 type of NamePart in definition should work. 2014-04-18 01:31:07 +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
b81eb9f8b3 NameFinder.filter_name is simpler now. 2014-04-14 13:45:31 +02:00
Dave Halter
6a40c9b671 remove get_set_vars completely from existance 2014-04-14 12:40:59 +02:00
Dave Halter
237af765b7 start to get rid of the get_set_vars/get_defined_names distinction 2014-04-14 12:28:24 +02:00
Dave Halter
edeebd0bb9 Name initialization should always take the same param types as input 2014-04-13 15:00:49 +02:00
Dave Halter
3d9d0bfd03 Name.get_code caching to make lookups faster 2014-04-12 15:28:19 +02:00
Dave Halter
305b593f3b create an is_callable method for all representation objects, to determine if something is callable or not 2014-04-02 09:42:15 +02:00
Dave Halter
b680246195 docstring working for local definitions as well 2014-03-27 12:34:53 +01:00
Dave Halter
58026c6542 temporary conversion of the imports module to separate import processing from actually importing things 2014-03-19 16:40:38 +01:00
Dave Halter
d12e030677 use tuples instead of lists if the don't change (immutable is faster and more memory efficient) 2014-03-06 00:26:23 +01:00
Dave Halter
a97c91002f replace name and statement end_pos (this way we can get rid of all that end_pos crap soon) 2014-03-05 23:46:39 +01:00
Dave Halter
66a488b911 clean up parse_dot_name and other small things 2014-03-05 22:46:11 +01:00
Dave Halter
1f7e4ca637 dict literals are now working (at least the parser) 2014-03-05 18:46:43 +01:00
Dave Halter
387319fde5 simplify parse_array again (closure in statement parser) 2014-03-05 16:54:21 +01:00
Dave Halter
7222d70ecb restructure token breaks in statement parser 2014-03-05 14:39:21 +01:00
Dave Halter
7d7a86239c tests for list comprehensions with included dict literals 2014-03-05 14:23:53 +01:00
Dave Halter
2322edff8f keyword statement not includes globals 2014-03-05 00:44:19 +01:00
Dave Halter
8bd8ba1df8 don't need to generate 'pass' anymore if a class is empty in get_code 2014-03-04 17:27:26 +01:00
Dave Halter
f54344fd9e KeywordStatements are working except for some of the old ones (global, assert, return, yield) 2014-03-04 17:20:29 +01:00
Dave Halter
53fd1f925a create KeywordStatement to fit assert, del, global, etc into a more generalized schema, which can also improve the get_code method 2014-03-04 15:35:24 +01:00
Dave Halter
65ce609a3c protect token_list -> _token_list 2014-03-04 12:43:37 +01:00
Dave Halter
7de4b14461 remove crazy PushBackIterator from statement parser 2014-02-27 17:40:01 +01:00
Dave Halter
85b5fdf85f again... statement parser 2014-02-27 17:12:16 +01:00
Dave Halter
1eba63760e more change to simplify the statement parser 2014-02-27 16:58:08 +01:00
Dave Halter
8688def619 more statement parser deletions 2014-02-27 11:42:16 +01:00
Dave Halter
38d940cc2b remove start_pos definition from statement parser 2014-02-27 11:36:58 +01:00
Dave Halter
2061fbcacc small parse_stmt refactoring 2014-02-27 00:43:27 +01:00
Dave Halter
3332eba3f7 lambda problem with new operators 2014-02-27 00:17:52 +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
Dave Halter
2e12eb7861 start with the integration of an Operator class to make way for precedences 2014-02-26 14:44:51 +01:00
Dave Halter
acec5fe76f fake docstrs fixed 2014-02-26 02:38:28 +01:00
Dave Halter
44e16c11e5 fixed docstr problems with unified interfaces 2014-02-26 02:33:18 +01:00
Dave Halter
5e5bb618ea remove token.py, docstrings are now just normal tokens until used 2014-02-26 01:13:38 +01:00
Dave Halter
18e985a961 TokenInfo -> Token 2014-02-25 16:44:48 +01:00
Dave Halter
ee7108cc11 successfully removed __str__ and __unicode__ methods from token.Token 2014-02-25 16:21:53 +01:00
Dave Halter
aea2c4620f more unicode switches in the parser 2014-02-25 14:27:50 +01:00
Dave Halter
f4f79317fe start uniting tokenize.TokenInfo and token.Token 2014-02-25 13:54:18 +01:00
Dave Halter
8e847f4982 fix python 2.7 issues. the parser now only takes unicode inputs 2014-02-23 11:44:32 +01:00
Dave Halter
d704743422 more consistent __slots__ usage in the parser -> 20% memory decrease for wx 2014-02-14 00:56:42 +01:00
Dave Halter
bb4d77f2a8 minor changes to the NamePart representation 2014-02-13 19:53:41 +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
040ea2b735 fix a few annoyances to be quicker to develop now (disabled a few tests for now) 2014-02-13 15:40:51 +01:00
Jean-Louis Fuchs
34e89fa1c5 Merge branch 'dev' into get_code_fidelity
Conflicts:
	jedi/evaluate/docstrings.py
	jedi/parser/representation.py

Resolving merge problems:
* Introducing docstring for compiled.fake
* Partly fixing poor decision in TokenDocstring __init__
2014-01-28 00:37:06 +01:00