Dave Halter
c85bdb8ff1
little edge case of modules that don't have a scope_names_generator, which is unfortunately missing, but not really used in Jedi.
...
At europython's hackathon we played with it and @scoder added a small script to cython/Cython/Compiler/JediTyper.py, which makes it possible to add Cython types to a Python script.
2014-07-26 13:18:04 +02:00
Dave Halter
852cdad754
Operator fixes. Subclass of Simple, now.
2014-07-22 16:02:34 +02:00
Dave Halter
2616143d10
unicode issues with docstrings should be gone, fixes #420
2014-07-18 17:43:25 +02:00
Dave Halter
81f3b940e8
dicts should not be used to check against in get_defined_names, because they cannot contain a defined name (lists and tuples can) so just ignore them., fixes #417
2014-07-18 15:37:10 +02:00
Dave Halter
21341283ca
another parser issue, very much related to the last one. sometimes a None element was used as a token.fixes #418
2014-07-18 15:10:10 +02:00
Dave Halter
0dea47b260
def/class keywords after an opening parentheses led to empty arrays without closing brackets, tests & fixes #416
2014-07-18 12:53:06 +02:00
Dave Halter
1fd7acef7a
finally able to remove _get_defined_names_for_position
2014-07-03 11:53:51 +02:00
Dave Halter
c1ed3bf38a
cleanup NameFinder.scopes, fully use scope_names_generator.
2014-07-03 11:48:26 +02:00
Dave Halter
13ada3154b
replace get_defined_names with scope_names_generator in a lot of places (the cleanup still needs to be done, though).
2014-07-02 16:12:49 +02:00
Dave Halter
d752907290
temporary solution for completions in asserts
2014-06-22 11:27:28 +02:00
Dave Halter
ddca14980e
introduce an is_scope function to make it easier to work with scopes
2014-06-20 17:47:42 +02:00
Dave Halter
2fc404f99d
fix issue with list comprehensions in function calls
2014-06-20 16:28:31 +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
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
4e596060b9
test for is_nested failure
2014-05-16 13:00:13 +02:00
Dave Halter
d59e21f43c
new way of gathering statements to evaluate for static analysis
2014-05-16 12:23:09 +02:00
Dave Halter
96386b4578
if something catches an exception, ignore that report
2014-05-12 18:10:17 +02:00
Dave Halter
70d85d1b3a
strip_imports -> follow_imports
2014-05-12 11:18:47 +02:00
Dave Halter
13949ec145
move is_nested check from evaluate.imports to the parser
2014-05-12 11:02:57 +02:00
Dave Halter
e0d0572d7f
fix for an issue with commas in statements
2014-05-04 02:20:46 +02:00
Dave Halter
c44b88adc3
Error token handling with dots in front.
2014-05-03 12:39:20 +02:00
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