Commit Graph

3193 Commits

Author SHA1 Message Date
Dave Halter
73057d4176 removed the INDENT usages that were left in the parser code 2014-02-21 15:39:14 +01:00
Dave Halter
fe02088dd7 restructure user_context reverse tokenizer to remove INDENT tokens in the future 2014-02-21 15:30:46 +01:00
Dave Halter
9c3b7b9c46 get rid of more variables 2014-02-21 10:44:33 +01:00
Dave Halter
184e90a3a0 removed some line checks from tokenizer 2014-02-21 00:13:23 +01:00
Dave Halter
a69eee5876 error tokens only exist in the end in a tokenizer 2014-02-21 00:09:49 +01:00
Dave Halter
3232ae5b0c removed parentheses counting from generate_tokens 2014-02-20 18:45:22 +01:00
Dave Halter
7e651684ff fix problems with debug mode if not correctly initialized. 2014-02-20 14:17:05 +01:00
Dave Halter
d7033726fd tokenize removed NL/NEWLINE ambiguity 2014-02-20 01:52:30 +01:00
Dave Halter
c26ae3c00d ignore dedents in tokenizer 2014-02-20 01:21:20 +01:00
Dave Halter
3e9b72b636 created a PushBackTokenizer specifically for the parser 2014-02-20 01:17:19 +01:00
Dave Halter
c8d6fbb0a1 temporary changes for the tokenizer issues 2014-02-20 00:43:42 +01:00
Dave Halter
000e929e3c Merge pull request #375 from ColinDuquesnoy/dev
Fix import of compiled module with python3.
2014-02-19 22:11:27 +04:30
ColinDuquesnoy
9d7ecae27c Add precompiled extension modules 2014-02-19 08:14:51 +01:00
ColinDuquesnoy
2c97d01bd0 Move extensions dir into test 2014-02-19 08:10:43 +01:00
ColinDuquesnoy
f808dbbd28 Change sys.path for the test to succeed.
Tested locally with a python3 extension module (in
/extensions/compiled33).

Also tested that reverting a75773cf9f make
the test fail.
2014-02-18 22:14:43 +01:00
ColinDuquesnoy
7977d57169 Add test_compiled
Should pass on travis since there is no precompiled modules yet
2014-02-18 20:31:06 +01:00
ColinDuquesnoy
7aed62cb99 Add compiled modules sources + readme 2014-02-18 20:12:30 +01:00
ColinDuquesnoy
5a706265bc Move dummy pyc to dummy package 2014-02-18 19:18:17 +01:00
ColinDuquesnoy
18a31dcbf1 Fix read mode for pyc files
Now all test should pass on travis.
2014-02-18 19:00:55 +01:00
ColinDuquesnoy
ea43efc9d8 Fix pyc test for python3
To import pyc modules, we must move them out of the __pycache__
directory and rename them to remove ".cpython-%s%d".

This should still faild with python3 (UnicodeDecodeError)
2014-02-18 19:00:55 +01:00
ColinDuquesnoy
d80caa7108 Add test pyc
Should succeed for python2 and faild for python3
2014-02-18 17:36:01 +01:00
Dave Halter
1b6df4602d replace parser tokenizer offset with line offset 2014-02-17 23:02:04 +01:00
Dave Halter
6952596117 implement an offset in generate_tokens 2014-02-17 10:08:32 +01:00
ColinDuquesnoy
a75773cf9f Fix import of compiled module with python3.
This at least fix #331
2014-02-17 09:08:30 +01:00
Dave Halter
bb111daf91 removed line from tokenizer 2014-02-16 15:28:18 +01:00
Dave Halter
22928dbcd0 simplified some crazy iterator stuff within parser 2014-02-16 15:04:57 +01:00
Dave Halter
82f27569b2 little changes to clean up the code (flake8) 2014-02-14 12:53:22 +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
660a29ef93 multiple passes for wx script 2014-02-13 17:47:52 +01:00
Dave Halter
5be996baa8 more detailed wx._core module inspection as a script. This makes it possible to compare different Jedi commits in speed and memory efficiency 2014-02-13 16:51:04 +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
Dave Halter
6939e3e18f moved test_get_code to test_parser 2014-02-12 11:33:46 +01:00
Dave Halter
2f3e4152b4 Merge branch 'get_code_fidelity' of git://github.com/ganwell/jedi into ganwell 2014-02-12 11:09:08 +01:00
Dave Halter
32ccec8447 precedence stuff is not working yet, but need to merge first because of potential parser changes 2014-02-12 11:08:48 +01:00
Dave Halter
cd1660dc53 first succeeding precedence tests 2014-01-31 11:12:28 +01:00
Dave Halter
62a74a6d2f tests for understanding operations 2014-01-30 11:27:03 +01:00
Dave Halter
e904031400 start correcting the documentation 2014-01-29 21:34:57 +01:00
Dave Halter
8660555d7b moved api, parser and evaluate test directories to test_api, test_parser... 2014-01-29 21:16:18 +01:00
Dave Halter
021aae365d move more test files to specific directories 2014-01-29 20:50:09 +01:00
Dave Halter
78114b12e9 move some tests into specific directories 2014-01-29 20:43:42 +01:00
Dave Halter
36de8c427f moved more functions from api to helpers 2014-01-29 00:28:31 +01:00
Dave Halter
7aef1f934d simplified _prepare_goto 2014-01-29 00:03:03 +01:00
Dave Halter
13696018a2 removed some functions from classes 2014-01-28 23:51:34 +01:00
Dave Halter
9cfa8fead0 create a helpers module to push some api functions into it (make the api code easier to read. 2014-01-28 23:26:50 +01:00
Dave Halter
2175416684 removed keyword docstring functionality for goto_definitions - will be reintroduced with a Script.documentation function 2014-01-28 22:27:26 +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
Dave Halter
18f225200a test for dynamic params/usages case 2014-01-26 23:13:46 +01:00
Dave Halter
f6b1e5635e move usages to its own api module usages 2014-01-26 23:04:38 +01:00