1
0
forked from VimPlug/jedi
Commit Graph

591 Commits

Author SHA1 Message Date
David Halter
4e27e7d335 fixed a positioning bug in the own tokenizer 2013-04-17 23:37:21 +04:30
David Halter
d82f315ea6 don't use SubModule's in the scope list if it has a parent 2013-04-17 13:39:02 +04:30
David Halter
9181410c47 fixed a problem with functions in the beginning of a module 2013-04-17 10:07:15 +04:30
David Halter
188ed33c4f fixed parser change problems 2013-04-15 11:50:05 +04:30
David Halter
b08390c136 some parser end positions changed 2013-04-15 10:22:27 +04:30
David Halter
bafb17001b fix encoding problems with terminal 2013-04-13 15:57:28 +04:30
David Halter
eeb8e0e21d first test working again with new fast_parser 2013-04-13 13:50:50 +04:30
David Halter
967d01d490 fast parser produces now trees that are correct 2013-04-10 23:50:39 +04:30
David Halter
5dd05eff1a a basic approach to the new fast parser 2013-04-10 22:33:49 +04:30
David Halter
a99d9541bd on the way to a better fast_parser - improved a lot of the positioning stuff 2013-03-24 22:51:17 +04:30
David Halter
df058b93c2 improve get_code of parsing_representation scopes 2013-03-16 23:26:20 +04:30
David Halter
841b0be19a improved parents in fast parser 2013-03-15 23:03:59 +04:30
David Halter
b426835d18 parser preparation for the new fast_parser 2013-03-15 13:57:23 +04:30
David Halter
b5ad56d116 new part spliting of strings 2013-03-15 02:15:45 +04:30
Takafumi Arakaki
0e99c33c67 Don't use NotFoundError in _func_call_and_param_index
This makes it simpler.
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
7ce0e1c178 Rename it to _func_call_and_param_index 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
d9b3bb4016 Refactor _get_function_call_and_param_index_at_point 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
9490730d59 Treat case like f() 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
a25aa884d6 Make Script.definition work inside function call 2013-03-10 21:27:34 +01:00
Takafumi Arakaki
0a09d8a813 Refactor function_definition 2013-03-10 21:27:34 +01:00
David Halter
d063aa3d66 Merge pull request #141 from tkf/attribute-docstring
Attribute docstring support
2013-03-10 13:23:47 -07:00
Takafumi Arakaki
871ce5ad33 Compatibility fix for Python 2.5 2013-03-10 20:44:15 +01:00
Takafumi Arakaki
a02940f3c1 Rename api.get_definitions to defined_names
Do the same for Definition.get_definitions also.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
36f03f4b0d Use the first item returned by get_names_of_scope 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
06de4d66e7 Revert "Add get_names_of_scope option to evaluate.get_names_of_scope"
This reverts commit 154662ea273a17f00186546bdf9d75833553d307.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
d4bf14dd66 Use list comprehension instead of map 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
5a29fecfb2 Fix Python 3 syntax error 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
71d5b0ac67 Document return type of get_names_of_scope 2013-03-10 20:40:52 +01:00
Takafumi Arakaki
87714460a2 Add get_names_of_scope option to evaluate.get_names_of_scope
Previously failing test passes now.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
3fbe7e9ff4 Rewrite get_definitions using evaluate.get_names_of_scope
- Definition.names is changed to Definition.name.
- TestGetDefinitions.test_nested_definitions fails.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
1eccf2f765 Make sure get_definitions returns list in Python 3 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
08f45d1f95 Fix Definition.get_definitions 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
0f67b3e0c2 More robust Definition.names 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
d0ad14adf4 Fix Definition.names for star import 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
cbcaa85108 Add :attr:Definition.names 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
39feecee04 Add new API: jedi.api.get_definitions 2013-03-10 20:40:14 +01:00
Takafumi Arakaki
8d486ff9aa Make doctest Python 3.x compatible 2013-03-04 02:07:47 +01:00
Takafumi Arakaki
0c6f7f66e9 Document get_names_of_scope with examples 2013-03-03 15:49:49 +01:00
Takafumi Arakaki
11707ffbbb Document evaluate.get_defined_names_for_position 2013-03-03 15:29:26 +01:00
Takafumi Arakaki
8e85adb718 Document Scope.get_defined_names 2013-03-03 15:19:34 +01:00
Takafumi Arakaki
d256c5470c Add a very short tutorial on parsing_representation 2013-03-03 14:55:24 +01:00
Takafumi Arakaki
99ab2dec15 Document pr.SubModule 2013-03-03 14:45:07 +01:00
Takafumi Arakaki
77e8b2aecd Remove a philosophical (and confusing) statement 2013-03-03 14:18:58 +01:00
Takafumi Arakaki
ac159bac07 Document pr.Simple.__init__ 2013-03-03 14:17:16 +01:00
Takafumi Arakaki
dc9a269d35 Use literal block instead of >>> for code example 2013-03-03 14:07:48 +01:00
Takafumi Arakaki
700493cac8 Fix and improve Statement.__doc__
- The type of `set_vars` and `used_vars` were wrong.
- ":param ...:" was used instead of ":type ...:".
- The parameter table is aligned to make it easier to read.
2013-03-03 14:07:07 +01:00
Takafumi Arakaki
9ba9e2c3a6 Make doctest work on Python 2.5 2013-02-26 10:58:24 +01:00
Takafumi Arakaki
b56c212a2c Fix renamed functions in docstring 2013-02-26 10:36:29 +01:00
Takafumi Arakaki
95a98c9033 Do not use >>> for non-doctest code example
Use literal block instead.
2013-02-26 10:36:08 +01:00
Takafumi Arakaki
dad9cf0518 Print str to avoid u prefix 2013-02-26 10:28:25 +01:00