Dave Halter
|
05fd7f992e
|
Don't use the fast parser at the moment. It's more important for now to even get a parser working.
|
2014-10-09 14:36:52 +02:00 |
|
Dave Halter
|
aa75140f96
|
Remove old base class for Nodes.
|
2014-10-09 13:33:42 +02:00 |
|
Dave Halter
|
92ee2a912e
|
Actually get the first few written tests passing.
|
2014-10-09 13:21:30 +02:00 |
|
Dave Halter
|
68d23840bb
|
Start actual testing of the new parser.
|
2014-10-09 13:16:28 +02:00 |
|
Dave Halter
|
140320143a
|
Remove the old Leave class.
|
2014-10-09 11:02:03 +02:00 |
|
Dave Halter
|
c7c222daab
|
Implement WhiteSpace as well and merge with pytree.
|
2014-10-09 10:55:03 +02:00 |
|
Dave Halter
|
6bb88ddd85
|
Function is starting to work.
|
2014-10-08 17:58:02 +02:00 |
|
Dave Halter
|
834172a3e9
|
Add a new parser, check it pgen2 would work. (already modified outside this repository)
|
2014-10-08 14:26:52 +02:00 |
|
Dave Halter
|
e9a3a44780
|
Remove some other _star_import_cache stuff, and with this, #489 should be fixed.
|
2014-10-06 17:55:28 +02:00 |
|
Dave Halter
|
8ca48f03db
|
Tests for imports and is_definition.
|
2014-10-02 11:14:03 +02:00 |
|
Dave Halter
|
03e01631cc
|
Remove NamePart from existance and rename it to Name.
|
2014-09-26 16:29:53 +02:00 |
|
Dave Halter
|
522c9eda90
|
Remove pr.Name completely.
|
2014-09-26 16:18:10 +02:00 |
|
Dave Halter
|
4d7db35340
|
Fix a few last tests, now Jedi's working again, tests are passing.
|
2014-09-26 16:02:03 +02:00 |
|
Dave Halter
|
3add6e4289
|
Fix various bugs.
|
2014-09-26 12:22:56 +02:00 |
|
Dave Halter
|
59225ceaa3
|
usages issues.
|
2014-09-25 00:14:43 +02:00 |
|
Dave Halter
|
e0f84ccb86
|
Tests for issues with default args in dynamic param contexts.
|
2014-09-19 16:56:26 +02:00 |
|
Dave Halter
|
99d35e57b6
|
Fix alias usages in goto_assignments.
|
2014-09-19 13:42:47 +02:00 |
|
Dave Halter
|
ed56f73836
|
Care for nested imports in goto_assignments.
|
2014-09-19 12:14:29 +02:00 |
|
Dave Halter
|
fc5f73861c
|
Fix issues with the os module.
Using a try/finally assures that the recursion checkers work the right way.
|
2014-09-19 10:59:24 +02:00 |
|
Dave Halter
|
83d2af5138
|
First imports are working with goto.
|
2014-09-19 01:21:17 +02:00 |
|
Dave Halter
|
610b2fc832
|
tests for goto on imports.
|
2014-09-19 00:49:22 +02:00 |
|
Dave Halter
|
7b0bb83d16
|
Change the behavior of eval_statement_element and follow_call_path. Arrays should only be looked at in the latter.
|
2014-09-18 23:44:11 +02:00 |
|
Dave Halter
|
69e6139527
|
Goto on named params in class calls is now working.
|
2014-09-18 20:11:58 +02:00 |
|
Dave Halter
|
ba80e35204
|
Test for an issue with named params in class calls (instead of functions).
|
2014-09-18 13:30:52 +02:00 |
|
Dave Halter
|
9fa6a86a19
|
Tests for Definition.is_definition().
|
2014-09-17 18:17:22 +02:00 |
|
Dave Halter
|
9983898162
|
Temporarily disable a test for goto on nested imports. The positions are currently wrong. But this is a known issue.
|
2014-09-11 02:27:53 +02:00 |
|
Dave Halter
|
9f16555f47
|
Big refactoring: BaseDefinition._definnition changes to BaseDefinition._name, because it's a NamePart now.
This also includes changes to tests and some simplifications like deleting the old name logic of Definition.
|
2014-09-11 01:03:30 +02:00 |
|
Dave Halter
|
0eea30f227
|
NamePart migration of Definition is complete. Now Completion.
|
2014-09-10 18:29:10 +02:00 |
|
Dave Halter
|
2aa538999e
|
Removed an old test from the days where it was allowed to add Keywords to Definitions.
|
2014-09-10 18:05:04 +02:00 |
|
Dave Halter
|
43cf1d451f
|
Python 2/3 compatibility issues that were not resolved in the latest commit.
|
2014-09-09 17:51:39 +02:00 |
|
Dave Halter
|
fdc637c5c4
|
Add a forgotten test module, test_sys_path.py and fix Python2/3 compatibility issues.
|
2014-09-09 17:08:22 +02:00 |
|
Dave Halter
|
87aa76678a
|
Goto should work on named params, too.
|
2014-09-09 16:48:53 +02:00 |
|
Dave Halter
|
45e033c50e
|
Quite a few fixes to be eventually able to use NameParts as Definition inputs.
|
2014-09-09 15:21:27 +02:00 |
|
Dave Halter
|
740fd0657f
|
Add a goto_assignments test for named params
|
2014-09-09 00:06:24 +02:00 |
|
Dave Halter
|
0dcb91d236
|
Add a Definition.is_definition function to be able to check if a name is a definition or not.
|
2014-09-08 23:44:35 +02:00 |
|
Dave Halter
|
851717a968
|
Publicize jedi.names and add a first test.
|
2014-09-08 22:39:47 +02:00 |
|
Dave Halter
|
ca536baf9b
|
Last fixes, because of the Name.get_definition change. The recent parser.representation changes are now fully working and we're ready to improve Evaluator.goto again.
|
2014-09-06 13:23:00 +02:00 |
|
Dave Halter
|
ece9fdf4ae
|
Fixing most of the issues that existed, because of the recent Name.get_definition/Call.name.parent change.
|
2014-09-06 13:02:52 +02:00 |
|
Dave Halter
|
7b2e11d71b
|
Rewrote sys_path._paths_from_assignment.
|
2014-09-04 14:12:10 +02:00 |
|
Dave Halter
|
e872d9e073
|
Script.goto_assignments now always needs a call_path. Otherwise it raises a NotFoundError.
This change makes Jedi's behavior more consistent.
|
2014-09-04 00:56:58 +02:00 |
|
Dave Halter
|
bb5ffe9343
|
CompiledObject.name returns a Name now, not a string. This is more consistent with the Jedi design and doesn't lead to bugs while ducktyping.
|
2014-09-03 19:43:21 +02:00 |
|
Dave Halter
|
bcc84820fe
|
Fix issues with unreachable flows.
This benefits static analysis as well as autocompletion: Unreachable code (things like code within 'if 0:') should still be resolveable.
|
2014-09-03 00:05:37 +02:00 |
|
Dave Halter
|
ea5b98905e
|
Make statement_elements_in_statement work with ListComprehensions, Lambdas and 'except foo as' expressions
|
2014-09-02 14:52:04 +02:00 |
|
Dave Halter
|
38c71fce3f
|
Added tests for statement_elements_in_statement
|
2014-09-02 12:10:16 +02:00 |
|
Dave Halter
|
76d91ba72a
|
Rename fast_parent_copy to deep_ast_copy.
|
2014-08-22 00:59:46 +02:00 |
|
Dave Halter
|
0ef030848d
|
refactor fast_parent_copy, use new_elements_default to hand in a dictionary, that contains all the generated duplicates.
|
2014-08-21 13:17:33 +02:00 |
|
Dave Halter
|
3cf8bfa8e1
|
Fix a few tests by either fixing the test cases or adding py__bool__ functions to objects that should have such a method.
|
2014-08-20 17:28:54 +02:00 |
|
Dave Halter
|
f911050300
|
Rewrote the isistance implementation, so that it works properly with tuples as well as normal classes.
|
2014-08-20 16:58:19 +02:00 |
|
Dave Halter
|
d6dd7cd55e
|
Move process_precedence_element from the Evaluator to the precedence module.
|
2014-08-20 15:59:37 +02:00 |
|
Dave Halter
|
7f874620db
|
Start documenting all the py__foo__ methods
|
2014-08-20 11:31:23 +02:00 |
|