Dave Halter
4bd3c91622
Fix Python 2 tests.
2017-04-15 01:49:20 +02:00
Dave Halter
d6d25db9a2
Remove __str__ from name.
2017-04-12 23:06:11 +02:00
Dave Halter
a0b65b52c6
used_names -> get_used_names().
2017-04-12 08:56:11 +02:00
Dave Halter
b0ac07228b
Restructure/Refactor has_absolute_import a bit.
2017-04-12 08:47:30 +02:00
Dave Halter
6190a65f23
The Lambda type should be lambdef, not lambda. Use the grammar types.
2017-04-11 18:28:25 +02:00
Dave Halter
5cd26615e8
Removed the name attribute from lambda. It doesn't exist so don't fake it.
2017-04-11 18:10:35 +02:00
Dave Halter
ff82763e6b
get_annotation -> annotation (property).
2017-04-08 15:29:29 +02:00
Dave Halter
545cb26f78
stars -> star_count.
2017-04-08 15:26:57 +02:00
Dave Halter
65a6c61dc6
Remove nodes_to_execute in favor of a function in parser_utils.
2017-04-08 12:59:49 +02:00
Dave Halter
4b841370e4
Test full name for os.path imports. Fixes #873 .
2017-04-05 01:00:20 +02:00
Dave Halter
fb8ed61b87
Add a way to cwd into a tmpdir.
2017-04-04 21:03:45 +02:00
Dave Halter
0117f83809
Forgot to include a test for #844 .
2017-04-04 20:35:32 +02:00
Dave Halter
e660a5a703
Forgot to include the test for #884 .
2017-04-04 20:31:27 +02:00
Dave Halter
947d91f792
Refactor the ClassName to allow inheritance in different modules. Fixes #884 .
2017-04-04 20:11:07 +02:00
Dave Halter
d41e036427
Keyword-only arguments were not usable. Fixes #883 and #856 .
2017-04-03 18:18:21 +02:00
Dave Halter
632072000e
Fix the builtin docstring issue that we've had. Fixes #859 .
2017-04-03 00:27:31 +02:00
Dave Halter
7ecaf19b59
Fix _remove_last_newline. Fixes #863 .
2017-04-02 21:29:48 +02:00
Dave Halter
bd779655ae
Merge branch 'dev' of github.com:davidhalter/jedi into dev
2017-04-01 17:51:36 +02:00
Dave Halter
d6d1a39bf2
Remove some print statements.
2017-04-01 17:50:47 +02:00
Andy Lee
3e36238da3
Add test for cross-module usages
2017-04-01 15:52:22 +02:00
Dave Halter
7e45ee3096
Refactor our parser caching a bit more.
2017-03-30 18:41:51 +02:00
Dave Halter
35fd1c70bd
Rename parser.utils to parser.cache.
2017-03-30 01:57:48 +02:00
Dave Halter
54d69fb9f4
Remove the ParserPickling class.
2017-03-30 01:50:50 +02:00
Dave Halter
8059c3c2c8
Save a module instead of a parser when pickling.
2017-03-30 00:55:04 +02:00
Dave Halter
932703f04a
Remove an import that is not needed anymore.
2017-03-28 02:09:38 +02:00
Dave Halter
ee47be0140
Merge Parser and ParserWithRecovery.
2017-03-28 02:08:16 +02:00
Dave Halter
8a35a04439
Remove the module path from the parser tree.
...
Some static analysis tests are still failing.
2017-03-27 18:13:32 +02:00
Dave Halter
b60ec024fa
Remove start_parsing completely from the Parsers.
2017-03-26 12:52:37 +02:00
Dave Halter
63cafeaa87
Remove all usages of start_parsing=True in the fast parser.
2017-03-26 12:49:40 +02:00
Dave Halter
3d27d06781
Use the new parse method instead of a Parser.
2017-03-26 11:49:17 +02:00
Dave Halter
fb4cff8ef9
A small buildout script refactoring.
2017-03-23 14:22:27 -07:00
Dave Halter
5aa379945e
Merge the FileNotFoundError cache.
2017-03-23 14:22:19 -07:00
Andy Lee
eb9af19559
Add test for loading deleted cache file
2017-03-23 08:17:11 -07:00
Dave Halter
6fef385774
Clean the path in pickling.
2017-03-23 08:52:25 +01:00
Dave Halter
26cce4d078
Add the grammar as an argument to saving the parser.
...
This makes collisions of different grammars when loading from the cache impossible.
2017-03-22 18:32:49 +01:00
Dave Halter
2cb565561d
Replace the diff parser imports with the modified path.
2017-03-21 22:10:01 +01:00
Dave Halter
52d855118a
Remove get_parsed_node from the parser as well.
2017-03-18 03:55:23 +01:00
Dave Halter
0f66a3c7a8
Remove the module attribute from the parser.
2017-03-18 03:53:34 +01:00
Dave Halter
448bfd0992
Move the python parser tree.
2017-03-16 17:20:32 +01:00
Dave Halter
06702d2a40
Move the python parser.
2017-03-16 08:40:19 +01:00
Dave Halter
93f14157a6
Cleanup the ParseError stuff.
2017-03-15 18:41:58 +01:00
Dave Halter
375749c5c3
Small restructuring.
2017-03-15 08:56:49 +01:00
Dave Halter
97fc3bc23c
Refactored the parser calls. Now it's possible to use jedi.parser.python.parse to quickly parse something.
2017-03-14 00:38:58 +01:00
Dave Halter
a7b1e3fe70
Fixed another diff parser error.
2017-03-12 15:58:14 +01:00
Dave Halter
6e3b00802c
Another endless while loop issue, add an assert.
2017-03-11 14:54:44 +01:00
Dave Halter
818fb4f60c
Fix a bug that might have caused an endless while loop a while ago. Fixes #878 .
2017-03-09 21:47:16 +01:00
Dave Halter
c7a74e6d1c
Make the tokenizer a generator.
2017-03-09 18:53:09 +01:00
Dave Halter
989e4bac89
Speed up splitlines.
...
We use the python function again with the modifications we need.
I ran it with:
python3 -m timeit -n 10000 -s 'from jedi.common import splitlines; x = open("test_regression.py").read()'
The speed differences are quite remarkable, it's ~3 times faster:
10000 loops, best of 3: 52.1 usec per loop
vs. the old:
10000 loops, best of 3: 148 usec per loop
We might need to speedup splitlines with as well. It's probably
also a factor 2-3 slower than it should be.
2017-03-09 08:58:57 +01:00
micbou
a859add6d7
Only resolve names for actual modules
...
A name can be part of an import statement without being a module.
2017-03-01 21:06:21 +01:00
Matthias Bussonnier
784de85b36
Add test for handeling of newline in multiline strings
2017-02-24 00:05:38 +01:00