Commit Graph

8025 Commits

Author SHA1 Message Date
Takafumi Arakaki
7f00b9414e Check the case where multiple docstrings are defined 2013-02-24 20:58:43 +01:00
Takafumi Arakaki
aad9c34db6 Include statements to Script.definition if it has docstring 2013-02-24 20:56:09 +01:00
Takafumi Arakaki
e458b35f1c Unconditionally set attribute docstrings
As Statement.assignment_details triggers parsing inside
statement let's don't check assignment_details when setting
attribute docstrings.
2013-02-24 19:45:47 +01:00
Takafumi Arakaki
540eff3d42 Add test_attribute_docstring 2013-02-24 19:39:59 +01:00
Takafumi Arakaki
b6839fb264 Define Name.docstr as a proxy for Statement.docstr 2013-02-24 19:39:46 +01:00
Takafumi Arakaki
740f27c8b8 Add attribute docstrings (PEP 257) support 2013-02-24 19:39:22 +01:00
Takafumi Arakaki
19b41c1cb4 Make pr.Statement "document-able" 2013-02-24 19:36:39 +01:00
Takafumi Arakaki
524feca0de Add TestDocstring 2013-02-24 17:40:18 +01:00
David Halter
d9ac630633 Merge pull request #140 from tkf/tox-setenv
Set XDG_CACHE_HOME in tox to avoid contaminating ~/.cache
2013-02-24 06:35:13 -08:00
David Halter
bbb1c463b4 Merge pull request #139 from tkf/tox-25
Fix setup.py and make 2.5 test runnable with tox
2013-02-24 06:33:46 -08:00
Takafumi Arakaki
679cd05acf Set XDG_CACHE_HOME in tox to avoid contaminating ~/.cache 2013-02-24 15:01:39 +01:00
Takafumi Arakaki
d9ca833814 Make 2.5 test runnable with tox 2013-02-24 14:56:15 +01:00
David Halter
68ace0d05b dynamic docstring improvements 2013-02-23 22:21:34 +04:30
David Halter
e8feb0b7d2 dynamic docstring 2013-02-23 22:15:17 +04:30
David Halter
4ee4e225a6 don't encode strings in python3, affects davidhalter/jedi-vim#94 and @dbrgn 2013-02-23 21:10:22 +04:30
David Halter
6ea64a28bf dev/refactor merge 2013-02-23 20:53:57 +04:30
David Halter
adc7a559cf python3.2 compatibility 2013-02-23 08:58:15 +04:30
David Halter
6ab10b6fa1 pep8 2013-02-23 01:16:02 +04:30
David Halter
4d7aad4ce8 deleted old crap code 2013-02-23 01:13:21 +04:30
David Halter
6912764923 fix position problems which came with lambdas 2013-02-23 00:40:34 +04:30
David Halter
7f051087e5 basic lambda implementation 2013-02-22 23:38:06 +04:30
David Halter
c1e805d7b0 fixed invalid list comprehension tests 2013-02-22 23:06:59 +04:30
David Halter
2fda713118 basic listcomprehension/lambda move 2013-02-22 23:02:44 +04:30
David Halter
b0c3fd5439 api.Script.get_definition -> definition, to be consistent in the api naming. deprecated api.Script.get_definition 2013-02-21 22:12:51 +04:30
David Halter
f8e0c78f77 Script.get_in_function_call -> Script.function_definition 2013-02-21 22:05:39 +04:30
David Halter
923e59b9c2 fixed position problems (with tokenizer offsets) 2013-02-21 21:45:39 +04:30
David Halter
80423ddb57 todo remove 2013-02-21 21:38:31 +04:30
David Halter
9690cf3eaf removed merged Statement.used_funcs and used_vars (made no sense) 2013-02-21 21:30:57 +04:30
David Halter
774c191d7e removed code part of Statement 2013-02-21 21:26:22 +04:30
David Halter
0084b9f04d little cleanup, removed old unused code 2013-02-21 20:57:05 +04:30
David Halter
2b174ecf2c simplify and fix refactoring: extract 2013-02-21 20:42:06 +04:30
David Halter
98ee2d9675 fixed refactoring: inline 2013-02-21 20:23:19 +04:30
David Halter
78fd8372a5 refactoring exception fixes 2013-02-21 20:02:25 +04:30
David Halter
d05018757d completely rewrote helpers.search_function_definition 2013-02-21 19:56:05 +04:30
David Halter
9fa0b9f924 fix rest of rename tests 2013-02-21 01:45:25 +04:30
David Halter
6b5295bc40 also fixed nested list comprehensions 2013-02-21 01:39:49 +04:30
David Halter
4d3267b24f fix list comprehension problems for non-nested 2013-02-21 01:13:23 +04:30
David Halter
9cda8c2a52 fix list comprehensions recursion problems 2013-02-20 23:45:40 +04:30
David Halter
fad4cd6c13 fix some other array parts 2013-02-20 23:38:33 +04:30
David Halter
f2cdf03e6e fixed dict problems 2013-02-20 22:44:02 +04:30
David Halter
06a54f30a8 some renaming fixes 2013-02-19 00:32:47 +04:30
David Halter
1b7fc1ee50 fixes for goto 2013-02-19 00:21:04 +04:30
David Halter
926ab81bf2 some import fixes 2013-02-19 00:11:15 +04:30
David Halter
3ddd371310 fixed isinstance checks 2013-02-19 00:02:05 +04:30
David Halter
b1825621ff fixed the rest of the dynamic problems 2013-02-18 23:49:28 +04:30
David Halter
c3fe5d04dd line_offset to offset in Parser, which is important for exact positioning 2013-02-18 23:17:41 +04:30
David Halter
b2aa8b8024 get_parent_until for ListComprehension 2013-02-18 20:52:07 +04:30
David Halter
30fa504457 fix some more dynamic problems 2013-02-18 20:41:27 +04:30
David Halter
4e102e25e6 fix some of the dynamic bugs 2013-02-17 23:23:57 +04:30
David Halter
108f395670 fixed ordering.py tests 2013-02-17 22:58:13 +04:30