Commit Graph
100 Commits
Author SHA1 Message Date
David Halter d1f23444b1 add property tests for renaming and removed some limitations of renaming, fixes davidhalter/jedi-vim#57 2012-12-27 00:03:02 +01:00
David Halter a7deb4766f test for davidhalter/jedi-vim#57 2012-12-26 23:28:24 +01:00
David Halter 4ff3a0ba26 variable set in the wrong place 2012-12-26 23:10:03 +01:00
David Halter e057387910 added docstring tests (forgot to add them a while ago), important for #87 2012-12-26 23:08:34 +01:00
David Halter 95a435f946 use get_in_function_call_cache again, because parsing the code is sometimes to slow 2012-12-26 23:05:31 +01:00
David Halter 45c9fe16b8 many tests and fixes for instance element renamings 2012-12-26 22:56:56 +01:00
David Halter 2534269cce many new renaming tests (and bug fixes) 2012-12-26 21:34:21 +01:00
David Halter 3bf0ec70fc improved goto on assignees (just return the assignee). 2012-12-26 20:53:15 +01:00
David Halter e020c6b792 api.Script.parser -> api.Script._parser (and the same with module). important for #86, sphinx docs 2012-12-26 18:42:54 +01:00
David Halter 993f7bd8d7 Merge branch 'dev' of github.com:davidhalter/jedi into dev 2012-12-26 18:36:24 +01:00
David Halter b7888c3d7c Merge pull request #86 from dbrgn/docs
Sphinx Docs
2012-12-26 08:35:38 -08:00
David Halter 92cd50b2b7 added goto tests for params 2012-12-25 02:26:36 +01:00
David Halter 70b949b6e5 test for class inheritance renaming 2012-12-24 17:22:45 +01:00
David Halter 1a4b556ddb removed whitespace in renaming tests 2012-12-24 17:15:21 +01:00
David Halter 6322df11f3 renaming tests refactored. It's now much easier and understandable to create rename tests 2012-12-24 17:12:46 +01:00
David Halter bd93f8fd2d move some parser details to protected class members 2012-12-24 12:53:38 +01:00
David Halter 40898450af support for super() 2012-12-24 12:27:43 +01:00
David Halter 6ec41909fe add lambdas to README 2012-12-24 10:58:56 +01:00
David Halter 0cca730b6e increase python2.5 test fails again, I'm sure @dbrgn will like this. 2012-12-24 10:53:17 +01:00
David Halter e647e09f0c fix problems with unnecessary brackets and following executions, which fixes also the last remaining lambda problem 2012-12-24 10:47:11 +01:00
David Halter 3f95d33f4d added tests for executions/follows of unnecessary brackets 2012-12-24 02:25:26 +01:00
David Halter 6ab9390bce lambdas: fix remaining problems with tests 2012-12-24 01:28:03 +01:00
David Halter f05b960386 lambdas: fix problems with reverse tokenizer 2012-12-24 01:26:35 +01:00
David Halter 716d2362fd fixed mostly wrong lambda tests (and a few lambda improvements as well) 2012-12-23 15:52:49 +01:00
David Halter c7fd196850 get_code is now able to process returns again 2012-12-22 20:28:34 +01:00
David Halter e701a4ef92 lambdas: add correct parents and change evaluate 2012-12-22 19:43:30 +01:00
David Halter 77b2ea2dce basic lambda parsing 2012-12-22 19:27:44 +01:00
David Halter ef1f637e71 Lambda class 2012-12-22 19:08:37 +01:00
David Halter 3fbf66f42c 14 lambda tests 2012-12-22 18:59:55 +01:00
David Halter da6186618e changed re.SREPattern mixins (forgot the params everywhere) 2012-12-22 18:33:16 +01:00
David Halter 60c65596d4 changed re.SREMatch.group 2012-12-22 18:29:01 +01:00
David Halter 55c7d414b0 and again something forgotten... sooo tired!!! 2012-12-22 01:55:34 +01:00
David Halter 3d06f7a257 and again some forgotten imports in the tests 2012-12-22 01:52:40 +01:00
David Halter 5fa88af041 forgot an import... it's late, I should go to sleep... 2012-12-22 01:48:36 +01:00
David Halter a2e05c215a forgot to move two function calls in the last commit 2012-12-22 01:43:29 +01:00
David Halter 0d6d84402d move star_import_cache to cache.py 2012-12-22 01:39:22 +01:00
David Halter ed8845c343 delete caches also at the beginning of an interaction 2012-12-22 01:37:31 +01:00
David Halter 2610c180c0 check for expired time caches in every interaction 2012-12-22 01:36:03 +01:00
David Halter 0617909e84 add get_in_function_call caching (3s for now) 2012-12-22 01:28:24 +01:00
David Halter f4b585a5e7 added an option to disable get_in_function_call caching 2012-12-21 18:00:21 +01:00
David Halter b3c89effe7 add wdb to implementations, #85 2012-12-19 23:50:49 +01:00
David Halter 99f1c805ef reversed builtin for pypy (is not a class), fixes #85 2012-12-19 23:47:54 +01:00
David Halter ce0aadc9a5 fix problems with certain builtins (names were just stupid, like '_sqlite3.cpython-32mu' / python 2.5 may have an error more #84 2012-12-19 23:12:15 +01:00
David Halter 2ee09980eb improve sqlite3 support -> added mixins -> fixes #84 2012-12-19 22:26:53 +01:00
David Halter acc8a4bc66 improve docstring hinting, also matters for sqlite3 2012-12-19 22:26:12 +01:00
David Halter dfc82742ec fix for missing unicode in py3k 2012-12-19 21:30:27 +01:00
David Halter e789e41fde remove old return statements 2012-12-19 21:27:59 +01:00
David Halter ca21f76128 no confusions in executions for dict assignments, fixes #83 2012-12-19 21:23:50 +01:00
David Halter bb31d3de3f pep8 2012-12-19 20:58:52 +01:00
David Halter 5e2e0a8f45 added source_to_unicode method to deal with different encodings, davidhalter/jedi-vim#48 2012-12-19 20:45:49 +01:00
David Halter 15510a4c3b more unicode casts instead of str casts 2012-12-19 18:46:32 +01:00
David Halter 8351cd65e8 refactored unicode tests 2012-12-19 12:07:43 +01:00
David Halter 571a96c02b test for #83 2012-12-19 02:01:57 +01:00
David Halter 7d3fd315d3 dots without any other actual relevant code shouldn't just complete, fixes #46 2012-12-19 01:55:32 +01:00
David Halter df95416160 refactored return/yield parsing, fixes davidhalter/jedi-vim#49 2012-12-18 15:35:59 +01:00
David Halter e09b578608 test for davidhalter/jedi#49 2012-12-18 12:09:41 +01:00
David Halter 17c349400c accidentally removed the fast_parser=True from settings 2012-12-18 01:51:36 +01:00
David Halter 74a51c87cb moved using setting.fast_parser to fast_parser 2012-12-18 01:50:10 +01:00
David Halter 2a8660b989 update parser settings 2012-12-18 01:09:21 +01:00
David Halter 92feb2f1d6 cleanup / py2.5 and py2.6 compatibility 2012-12-18 00:56:16 +01:00
David Halter ffeecc1674 improved speed for tests again, reparsing is now only done if something changed (removed reparsing of the user_scope in every completion). this is not going to have a deep impact on users, but it speeds up tests. 2012-12-18 00:51:25 +01:00
David Halter 7e7006e142 fix problems (end_pos of positions was wrong) with user_scopes 2012-12-17 23:19:44 +01:00
David Halter 8bbd2108bd basic caching of fast_parser modules. 2012-12-17 01:27:15 +01:00
David Halter c1d442fa17 added a line_offset attribute - enables fast_parser to change positions 2012-12-16 17:23:15 +01:00
David Halter 099e2410ad added test count to test result 2012-12-16 04:09:45 +01:00
David Halter 5f76ffdfe8 py3k/py2.5 compatibility, and a bugfix 2012-12-16 04:03:46 +01:00
David Halter 36b75c3e15 fixed the last remaining problems with fast_parser (not cached yet) 2012-12-16 03:50:50 +01:00
David Halter bcdf273c21 fix comment problem (code shouldn't be parsed multiple times) 2012-12-16 02:41:04 +01:00
David Halter 21b49a17ff fix last problems with fast_parser 2012-12-15 23:17:37 +01:00
David Halter 3aae532374 fix fast_parser problems with asserts 2012-12-15 21:27:09 +01:00
David Halter 2b579eb09b many bugfixes related to fast_parser 2012-12-15 16:38:21 +01:00
David Halter b8b4a02398 fixed some bugs within fast_parser and added an option 'settings.fast_parser' to turn on fast parsing. 2012-12-14 18:16:54 +01:00
David Halter 6963a6ac4a other random bugfixes for positions and the use of fast_parser 2012-12-14 15:22:28 +01:00
David Halter 05885a8b06 parsing change of positions for modules (wasn't correct before) 2012-12-14 15:20:51 +01:00
David Halter 5b79e7026e python 2.5 compatibility 2012-12-14 12:25:27 +01:00
David Halter fe05474459 added a first version of fast_parser 2012-12-14 12:19:07 +01:00
David Halter 2ed8bad8af move MultiLevel exceptions to common 2012-12-14 12:04:51 +01:00
David Halter fa831b4f4a Module -> SubModule because of part_parser 2012-12-14 11:47:47 +01:00
David Halter f3273e1cda refactor use of NoErrorTokenizer 2012-12-14 10:07:39 +01:00
David Halter b0386d9c74 start/end_pos refactored in parsing 2012-12-13 19:59:29 +01:00
David Halter a51a1f7aa0 remove PyFuzzyParser attributes in favor of local vars 2012-12-13 18:16:06 +01:00
David Halter 3aecb3ff90 add NoErrorTokenizer, for more readability 2012-12-13 18:08:01 +01:00
David Halter cab74d5f51 move parsing.PushBackIterator and parsing.indent_block to common 2012-12-13 16:38:15 +01:00
David Halter 2d8d180354 preparation for a more general purpose tokenizer 2012-12-13 16:25:39 +01:00
David Halter 4814c13e29 PyFuzzyParser should not be called with no_docstr=True and source_path 2012-12-13 12:42:04 +01:00
David Halter 303672f037 memoize_default is now able to use different caches. 2012-12-13 12:39:51 +01:00
David Halter 30fef3ffde added time used by test script 2012-12-12 21:38:22 +01:00
David Halter 7969e19a5b cleanup/pep8 2012-12-12 21:34:04 +01:00
David Halter 9b45ddcb7c removed faked_scopes, was only necessary because of weakrefs. 2012-12-12 21:31:41 +01:00
David Halter e8ddc35a1b caches have their own module now. 2012-12-12 21:28:19 +01:00
David Halter 169b35b5a9 setup.py should be executable 2012-12-12 18:11:39 +01:00
David Halter 5a7a420026 merge and a few changes for the SyntaxError problem with mixin in (pip installation). -> fixes #79, also important for #82, #81, davidhalter/jedi-vim/issues/41, solution from #65 2012-12-12 18:10:42 +01:00
David Halter 181d700e50 change the way mixins are being added by setup.py, may fix #79 2012-12-12 11:32:53 +01:00
David Halter 2d75f509b7 typo for symmetric_difference, davidhalter/jedi-vim#45 2012-12-11 14:03:24 +01:00
David Halter cef7da7035 method signatures and return types of some 'set' methods, fixes davidhalter/jedi-vim#45 2012-12-11 14:01:18 +01:00
David Halter b8a92ecbe3 speed debugging for completions 2012-12-11 13:59:59 +01:00
David Halter 6217e1e85a private members are now being put at the end of a completion list, #78 2012-12-11 09:37:52 +01:00
David Halter a3647a4c03 version update 2012-12-11 09:36:14 +01:00
David Halter 800f6eb84b bugfix for the latest patch 2012-12-10 20:20:39 +01:00
David Halter ba6297a070 fix for a problem with get_in_function_call, if parentheses were not closed. 2012-12-10 19:46:17 +01:00