Dave Halter
9dedb9ff68
Don't start parsing in our own API.
2017-03-20 08:44:52 +01:00
Dave Halter
aaf6c61e69
Make remove_last_newline private.
2017-03-18 03:07:01 +01:00
Dave Halter
519fa9cfb5
Remove complicated merging of used names from the parser.
...
It's a lot of complicated code and a lot can go wrong. It also didn't speed up anything. If anything it made things like 5% slower. I have tested this with:
./scripts/diff_parser_profile.py wx._core.py
wx._core.py is not part of Jedi.
2017-03-16 22:00:01 +01:00
Dave Halter
8156a6b8a2
Remove used_names from the parser step. It's a separate iteration, now.
2017-03-16 21:28:42 +01:00
Dave Halter
448bfd0992
Move the python parser tree.
2017-03-16 17:20:32 +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
b814a91f29
Avoid endless loop with an assert in the diff parser.
2017-03-08 18:33:38 +01:00
Dave Halter
1d64a5caa1
Replace first_leaf and last_leaf with get_first_leaf and get_last_leaf.
2017-02-03 17:35:53 +01:00
Dave Halter
68a3a9cf41
Don't do anything with the diff parser if nothing changes.
2017-01-29 22:12:24 +01:00
Dave Halter
e5af996829
Remove old debug code from the diff parser.
2017-01-29 21:57:09 +01:00
Dave Halter
3f1e658e1d
Set the limit for debugging failed diff parsers a bit higher.
2017-01-29 14:34:20 +01:00
Dave Halter
b0f340748c
So much work for one simple diff fail.
2017-01-29 00:42:09 +01:00
Dave Halter
9982975ad2
Another small performance improvement.
2017-01-25 22:54:08 +01:00
Dave Halter
f2db0dceb4
A few small performances improvements on the diff parser.
2017-01-25 21:12:13 +01:00
Dave Halter
f4b8a02d37
Add a few speed debugging times to the diff parser.
2017-01-24 09:51:23 +01:00
Dave Halter
01b25efea1
Use the same function to detect newlines in the diff parser.
2017-01-23 09:56:38 +01:00
Dave Halter
194295066a
Fix one more issue in the diff parser.
2017-01-22 23:44:10 +01:00
Dave Halter
08c66207ec
Fix the last diff parser test.
2017-01-22 20:27:11 +01:00
Dave Halter
dca35393d5
Remove old code from the diff parser.
2017-01-22 20:22:20 +01:00
Dave Halter
8f4b862892
Fix most diff tests.
2017-01-22 20:13:18 +01:00
Dave Halter
005b24ed54
Better handling of the stack.
2017-01-21 18:43:54 +01:00
Dave Halter
21cd10cefd
Get a few diff tests passing.
2017-01-20 20:46:30 +01:00
Dave Halter
73b2287fb4
Fix some tests.
2017-01-20 18:12:09 +01:00
Dave Halter
ebfae050a8
Delete a lof of duplicate code.
2017-01-19 18:31:53 +01:00
Dave Halter
ef31c3d1f4
Some asserts pass now in the tests.
2017-01-19 18:26:50 +01:00
Dave Halter
3bf5f93edd
Progress in using a stack in the diff parser.
2017-01-19 09:44:07 +01:00
Dave Halter
fe44458ec0
Start implementing the node stack.
2017-01-16 16:32:49 +01:00
Dave Halter
ad1222e6d7
Fix another parser bug.
2017-01-12 08:46:58 +01:00
Dave Halter
0141711af8
Diff parser docstring.
2017-01-10 19:17:37 +01:00
Dave Halter
425fba5e95
Move the parser.fast module to parser.diff.
2017-01-10 19:15:47 +01:00