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
|
96c67cee26
|
Simplify the leaf with newlines stuff.
|
2017-03-16 20:18:30 +01:00 |
|
Dave Halter
|
4573ab19f4
|
Separate the python syntax tree stuff from the non python stuff.
|
2017-03-16 19:54:08 +01:00 |
|
Dave Halter
|
448bfd0992
|
Move the python parser tree.
|
2017-03-16 17:20:32 +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
|
af9b0ba8d6
|
Merge branch 'master' into dev
|
2017-03-12 20:51:17 +01:00 |
|
Alex Wiltschko
|
82d165a723
|
Missing paren
|
2017-03-12 20:41:17 +01:00 |
|
Matthias Bussonnier
|
ef1b1f41e4
|
Use start and end position in repr for simpler debugging.
|
2017-02-14 23:53:53 +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
|
90fffd883e
|
Clean up the function docstring.
|
2017-02-03 17:30:58 +01:00 |
|
Dave Halter
|
647aec11a6
|
Return None instead of raising an IndexError in get_next_leaf.
|
2017-02-03 17:26:02 +01:00 |
|
Dave Halter
|
c5071f9f49
|
Change get_previous_leaf to return None if there is no leaf anymore (at the start of the file).
|
2017-02-03 17:23:15 +01:00 |
|
Dave Halter
|
445bf6c419
|
Get rid of get_parent_until.
|
2017-02-03 09:59:32 +01:00 |
|
Dave Halter
|
b3cb7b5490
|
Remove the def isinstance from the parser. It was a really bad pattern.
|
2017-02-03 09:37:59 +01:00 |
|
Dave Halter
|
b0f340748c
|
So much work for one simple diff fail.
|
2017-01-29 00:42:09 +01:00 |
|
Dave Halter
|
4918fb49f5
|
Implement binary search for get_leaf_for_position. This makes it a lot faster.
|
2017-01-25 22:27:36 +01:00 |
|
Dave Halter
|
7623b1e350
|
Removed tree.is_node.
It's not needed anymore, because we have Node/Leaf.type now.
|
2017-01-23 20:34:30 +01:00 |
|
Dave Halter
|
64abe401ed
|
The position modifier is not used anymore.
|
2017-01-23 20:12:17 +01:00 |
|
Dave Halter
|
d85ceb9222
|
More cleanups in the parser.
|
2017-01-23 20:10:02 +01:00 |
|
Dave Halter
|
7300f3e7ef
|
Fix issues with Python 3.6's f strings and underscores in numbers.
|
2017-01-08 19:39:14 +01:00 |
|
Dave Halter
|
3f09f3a304
|
Add support for PEP 0526.
This makes it possible to assign variables like
asdf: typing.List[int] = []
|
2017-01-08 03:57:35 +01:00 |
|
Dave Halter
|
61c7444185
|
Fix some more issues in the diff parser that caused it to completely crash.
|
2016-12-30 20:13:05 +01:00 |
|
Dave Halter
|
90b76ee3ec
|
Fix an issue in the diff parser.
|
2016-12-20 23:32:51 +01:00 |
|
Dave Halter
|
fda0f80573
|
Remove global_names from modules.
|
2016-12-18 22:21:06 +01:00 |
|
Dave Halter
|
5c52c7fb45
|
Completely remove names_dicts from the diff parser.
|
2016-12-17 17:15:44 +01:00 |
|
Dave Halter
|
6736b1a5ce
|
Fix some docstring stuff.
|
2016-12-05 09:42:51 +01:00 |
|
Dave Halter
|
6f4cd7e6d3
|
Improve api class tests.
|
2016-12-04 20:04:54 +01:00 |
|
Dave Halter
|
439e394535
|
Fix call signatures.
|
2016-12-04 03:52:33 +01:00 |
|
Dave Halter
|
5b81a2375d
|
More tests and better understanding of if/try branches name resolution.
|
2016-11-29 10:21:50 +01:00 |
|
Dave Halter
|
aaaa3c24a5
|
Listeners should not be part of the parser tree. This is logic that belongs to the evaluation.
|
2016-11-02 09:22:19 +01:00 |
|
Dave Halter
|
2f1e9d634f
|
FunctionExecution improvement.
|
2016-10-02 19:54:03 +02:00 |
|
Dave Halter
|
249049b10c
|
Start using filters for name resolution.
|
2016-09-30 13:29:20 +02:00 |
|
Dave Halter
|
885cf62a12
|
Remove the position_modifier from the parser.
|
2016-09-18 00:50:31 +02:00 |
|
Dave Halter
|
c764976ef2
|
Merge branch 'remove_names_dicts' into diff
|
2016-09-11 13:24:11 +02:00 |
|
Dave Halter
|
7667cba17e
|
Remove old indent/dedent usages. Now they are not needed anymore.
|
2016-09-11 13:20:24 +02:00 |
|
Dave Halter
|
1226962922
|
Remove dedents from the parser tree. No need for them.
|
2016-09-11 13:03:29 +02:00 |
|
Dave Halter
|
91ed1da6f4
|
Better testing.
|
2016-09-08 00:17:54 +02:00 |
|
Dave Halter
|
00a8b3e4f1
|
Some more tests are passing.
|
2016-09-03 03:06:38 +02:00 |
|
Dave Halter
|
1e5ad467d3
|
Start debugging the beast.
|
2016-08-23 18:24:58 +02:00 |
|
Dave Halter
|
70220171fa
|
names_dict merging progress.
|
2016-08-20 14:21:37 +02:00 |
|
Dave Halter
|
fc7fd9d989
|
Fix some more fast parser issues.
|
2016-07-25 18:29:01 +02:00 |
|
Dave Halter
|
2d544c51c6
|
Better completions in comments.
|
2016-07-25 09:58:04 +02:00 |
|
Dave Halter
|
ff47fab62a
|
Remove Whitespace class and replace it with Newline and Endmarker.
|
2016-07-24 17:16:36 +02:00 |
|
Dave Halter
|
7f2f66f011
|
Trying to refactor the completion stack finding.
|
2016-07-24 17:06:54 +02:00 |
|
Dave Halter
|
2563746810
|
Fix issues with octals in Python 2 (and possibly 3). Fixes #559.
|
2016-07-17 22:36:26 +02:00 |
|
Dave Halter
|
1c0aa06c7d
|
PEP 3132 unpacking should not raise an error (it may yield wrong results though at the moment), fixes #707.
|
2016-07-10 17:51:01 +02:00 |
|
Dave Halter
|
4a19376187
|
Fix issue https://github.com/DamnWidget/anaconda/issues/449. Using self should not cause side effects in completion.
|
2016-07-06 18:31:47 +02:00 |
|
Dave Halter
|
4243adf54b
|
Add param splitting test.
|
2016-07-06 08:30:27 +02:00 |
|
Dave Halter
|
52c42c3392
|
Reenable call signature caching and move a lot of parser specific caching to the parser itself.
|
2016-06-28 08:46:29 +02:00 |
|
Dave Halter
|
6f366e2d77
|
Rename next_sibling and prev_sibling.
|
2016-06-14 23:22:33 +02:00 |
|