Commit Graph

2169 Commits

Author SHA1 Message Date
Dave Halter
3c6d5dafb1 Split Import, now there is ImportFrom and ImportName as it exists in the python grammar. 2014-11-19 00:40:16 +01:00
Dave Halter
535a69e499 Small improvments to from imports 2014-11-18 18:43:16 +01:00
Dave Halter
78b7b8ffaf add a test that wasnt working with the old dynamic param lookup. 2014-11-18 13:08:27 +01:00
Dave Halter
4fa78e3482 Fix the last remaining issue with decorators. 2014-11-17 23:59:38 +01:00
Dave Halter
d49a8fc073 The test runner should only start tests if the name starts with the same letters. 2014-11-17 17:56:43 +01:00
Dave Halter
b57e4c4e7c dynamic test descriptions. 2014-11-17 17:18:03 +01:00
Dave Halter
9054a3f674 Split dynamic tests into dynamic_params and dynamic_arrays. 2014-11-17 17:11:58 +01:00
Dave Halter
541b8872d0 Changed is_node so it can actually deal with InstanceElements. 2014-11-13 01:15:44 +01:00
Dave Halter
c326562c27 Implemented x if foo else y case. 2014-11-12 11:49:27 +01:00
Dave Halter
54c5591ccb Progress with list comprehensions. There is now a separate class. 2014-11-12 11:42:31 +01:00
Dave Halter
cc661473bc Trying to change used_names, so that they don't contain name definitions from CompFor. 2014-11-11 17:13:27 +01:00
Dave Halter
00454daf57 change the new parser tests 2014-11-06 14:16:17 +01:00
Dave Halter
14ec210891 param default values. 2014-10-27 12:03:09 +01:00
Dave Halter
c0768924f6 Managed to get dict inputs working into kwargs. This was wrong in the old version of the parser. 2014-10-27 01:07:15 +01:00
Dave Halter
93c97a78a3 Fix an issue with classes and decorators combined. 2014-10-24 00:41:26 +02:00
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