1
0
forked from VimPlug/jedi

Commit Graph

  • e1e5c3a6c7 Progress with call signatures. Dave Halter 2014-12-07 13:56:40 +01:00
  • 24903739f2 A first implementation of call signatures. Dave Halter 2014-12-05 16:05:54 +01:00
  • ab254bbcba Call signature search progress. Dave Halter 2014-12-05 00:23:59 +01:00
  • 24c7142810 Fix issues with scope ordering in classes/functions. Dave Halter 2014-12-04 18:49:09 +01:00
  • 774ade955d Fixing for loop additions. Dave Halter 2014-12-04 17:58:01 +01:00
  • a96d1b8d0f fix something with not/- prefixes. Dave Halter 2014-12-04 17:51:14 +01:00
  • 478acf8ccf partial is working partially now with the new parser, because invalid statements are not possible anymore (two times **kwargs) Dave Halter 2014-12-04 14:29:37 +01:00
  • 8f1002218d Very temporary solution for doing deep_ast_copy. Dave Halter 2014-12-04 11:19:33 +01:00
  • aa9057be38 Small fix for builtins. Dave Halter 2014-12-04 02:01:30 +01:00
  • 1725abb1fd Fix issues with docstrings. Dave Halter 2014-12-03 20:30:03 +01:00
  • f1431cef40 Decorator fixes. Dave Halter 2014-12-03 17:09:30 +01:00
  • 09ad3411da Goto fixes. Dave Halter 2014-12-03 17:01:29 +01:00
  • 6314b80abd Some goto refactorings. Dave Halter 2014-12-03 16:52:05 +01:00
  • b2267d3878 Fix usages. Dave Halter 2014-12-03 16:34:31 +01:00
  • 6bf154de5e Better goto for imports, which helps usages. Dave Halter 2014-12-03 16:15:31 +01:00
  • 536c188192 Change get_self_vars. Now using py__mro__ to avoid recursions. Dave Halter 2014-12-03 12:59:43 +01:00
  • b9e7a2eb95 Fix assert issues in combination with comprehensions. Dave Halter 2014-12-02 17:55:42 +01:00
  • 5f89ceb385 Add the type attribute to all classes in the tree. Because nodes have them as well. Dave Halter 2014-12-02 17:50:55 +01:00
  • 425741e285 Fix assertion/isinstance type information. Dave Halter 2014-12-02 17:45:19 +01:00
  • cf0407e164 Add 'if isinstance' type information. Dave Halter 2014-12-02 17:34:36 +01:00
  • 99febfe6c2 Fixed a very nasty bug in deep_ast_copy. Dave Halter 2014-12-02 04:19:22 +01:00
  • 235672efc1 Fix an issue for stdlib regex completion. deep_ast_copy had a bug and also changed the way how decorators work. Dave Halter 2014-12-01 18:09:21 +01:00
  • 2515d283be __getitem__ in instances. Dave Halter 2014-12-01 15:41:13 +01:00
  • 0ab9d331f8 Issues with dictionary/list/tuple literal methods. Dave Halter 2014-12-01 15:36:36 +01:00
  • e51a393e4c Fix reversed. Dave Halter 2014-12-01 12:41:47 +01:00
  • 3cc4da28ed Fix lambda_nocond. Dave Halter 2014-12-01 11:56:28 +01:00
  • bcd998ae02 Lambdas are own namespaces and deserve their own used_names dictionary in the parser. Dave Halter 2014-12-01 11:49:52 +01:00
  • 7c9de1fbeb Some class lambdas tests too assure that they are working well with instances. Dave Halter 2014-12-01 11:36:19 +01:00
  • 50752df6dd Fix an issue with combinations of InstanceElement and Lambdas. Dave Halter 2014-12-01 11:26:35 +01:00
  • 88853c78f4 Get lambdas mostly working. Dave Halter 2014-12-01 02:47:48 +01:00
  • 4ee5ad4ce3 iterating list comprehensions should be possible. Dave Halter 2014-12-01 01:08:50 +01:00
  • ed1915eea0 Fixes for goto on list comprehensions. Dave Halter 2014-12-01 01:02:41 +01:00
  • 68bd9160e2 Fixed list comprehension name lookups. Dave Halter 2014-12-01 00:08:27 +01:00
  • 3928f466cf Fix positioning of the user statements. Dave Halter 2014-11-29 16:20:12 +01:00
  • cd7044cae3 Don't use NotFoundError anymore, since it's very ambiguous what that would imply. Dave Halter 2014-11-29 15:57:18 +01:00
  • 0184e80120 dynamic_params correction. Dave Halter 2014-11-29 13:49:50 +01:00
  • 417db4e83f suites without indent can also be deleted. Dave Halter 2014-11-29 13:30:21 +01:00
  • a7560069b0 Fixes for issues with empty compound_stmt. We always remove a whole stmt and just a funcdef as an error correction. Dave Halter 2014-11-29 13:25:31 +01:00
  • 3fb1934462 Fix invalid test issues. Dave Halter 2014-11-29 01:35:26 +01:00
  • 2b912cb75a The func/class dictionaries must be changed if some scopes are removed by the parser's error recovery. Dave Halter 2014-11-29 01:29:21 +01:00
  • 43c01afcfc invalid.py test changes. Error recovery will be different from the old one. Dave Halter 2014-11-28 21:58:44 +01:00
  • 2c684906e3 Working with dedents in error recovery. Dave Halter 2014-11-28 21:33:40 +01:00
  • 31600b9552 classes and functions are new statements and should never get removed by the error recovery. Dave Halter 2014-11-28 02:44:34 +01:00
  • 128dbd34b6 Check parentheses level in tokenizer. Dave Halter 2014-11-28 02:14:38 +01:00
  • e1d6511f2f Trying to move the indent/dedent logic back into the tokenizer. Dave Halter 2014-11-28 02:04:04 +01:00
  • 97516eb26b The new tokenizer is more or less working now. Indents are calculated as they should Dave Halter 2014-11-27 16:03:58 +01:00
  • c0df7003a5 Allow both the old tokenizer and the new one (able to toggle). Dave Halter 2014-11-27 01:12:49 +01:00
  • c7862925f5 Small tokenizer changes & tokens now have a prefix attribute instead of preceeding_whitespace. Dave Halter 2014-11-27 01:10:20 +01:00
  • 02cb1fef95 Rename test_tokenizer to test_tokenize. Dave Halter 2014-11-26 16:16:58 +01:00
  • cc1098b93c Fix a few tokenize tests and merge them back together. Dave Halter 2014-11-26 16:09:28 +01:00
  • f43c371467 Merge @joel-wright's whitespace tokenizer branch. Thanks! Dave Halter 2014-11-26 15:55:18 +01:00
  • 427056a22d Change the pgen2 parser and its driver so that it can be accessed easily from the outside. This is a minor change and will allow Jedis tokenizer to work with pgen2. Dave Halter 2014-11-26 15:05:36 +01:00
  • cd1e07a532 The now passing on_import tests should not worsen the performance of the other tests. Dave Halter 2014-11-26 03:11:22 +01:00
  • f24a3bf997 Fix on_import tests. Dave Halter 2014-11-26 03:07:41 +01:00
  • 1326a2137d Change the backwards tokenizer that keywords always stop. Dave Halter 2014-11-26 02:31:35 +01:00
  • a940c31a86 Improvments to on import completion. Dave Halter 2014-11-26 02:13:24 +01:00
  • 149b4d8ad5 Import completion on syntactically correct imports. Dave Halter 2014-11-26 01:15:40 +01:00
  • 499c62df43 Fixes for os.path import Dave Halter 2014-11-25 19:39:14 +01:00
  • 5d82b11f59 First implementation to be ready to complete corrupt imports. Working ok. Dave Halter 2014-11-25 19:35:27 +01:00
  • e72eaf7a59 on import completion preparations. Dave Halter 2014-11-25 15:10:36 +01:00
  • 52d4aaebbe small fix for docstring parsing. Dave Halter 2014-11-25 15:10:19 +01:00
  • 5de84afff4 Fix __getitem__ Dave Halter 2014-11-24 02:10:02 +01:00
  • fae0a7b0c4 Small fixes for past mistakes. Dave Halter 2014-11-24 01:56:54 +01:00
  • db76bbccc5 Trying to change the symbols in node. They are now strings. Dave Halter 2014-11-24 01:51:14 +01:00
  • 9f45f18ad1 Added a grammar param to the parser. Dave Halter 2014-11-24 01:10:39 +01:00
  • c152a1c58b Actually replace tree with representation (in all the imports). Dave Halter 2014-11-23 19:46:52 +01:00
  • 1fbc4c9196 Change parser.representation to parser.tree. It's shorter and says more. Dave Halter 2014-11-23 19:35:46 +01:00
  • ac41c31015 Removed more of the old parser representation code. Dave Halter 2014-11-23 19:33:18 +01:00
  • 9b54541cae Remove quite a bit of the old parser representation logic. Dave Halter 2014-11-23 19:26:30 +01:00
  • 0f21d38e2c Remove the old parser. Dave Halter 2014-11-23 19:17:50 +01:00
  • 267016f533 Function for evaluating functions with already executed arguments. Dave Halter 2014-11-23 19:12:25 +01:00
  • 8adfc47297 Fix some issues with params. Dave Halter 2014-11-23 12:22:03 +01:00
  • c10ec4f876 star arg iteration improved. Dave Halter 2014-11-23 11:59:20 +01:00
  • f1cbd45575 Usages are pretty solid now except for parser issues. Dave Halter 2014-11-22 15:43:23 +01:00
  • b82e1e28e5 Get at least some usages stuff right. Dave Halter 2014-11-22 02:05:36 +01:00
  • 22fbcf6c77 More goto improvements. Dave Halter 2014-11-21 15:45:17 +01:00
  • eb0bfb4381 get_code in Definition.description should not return first prefix. Dave Halter 2014-11-21 15:33:38 +01:00
  • f604066288 First small implementation of goto. Dave Halter 2014-11-21 14:21:00 +01:00
  • fd16dfe2c7 Fix the first part of sys path checks. Dave Halter 2014-11-21 01:46:18 +01:00
  • 11fa71bac8 Fixes for nested star imports. Dave Halter 2014-11-20 14:56:05 +01:00
  • 3b7454e294 copy fixes. Dave Halter 2014-11-20 14:51:01 +01:00
  • 83b09f6c1e Small issue with is_definition and params. Found by looking at stdlib/random.choice tests. Dave Halter 2014-11-20 14:48:14 +01:00
  • cc465364d3 Fixes towards better MergedArray and partial functions. Dave Halter 2014-11-20 13:33:05 +01:00
  • a6e1348757 type implementation. Dave Halter 2014-11-20 12:31:11 +01:00
  • f2e3a3d090 Just rebuilt reversed. Dave Halter 2014-11-20 11:56:54 +01:00
  • 53c2a1679c Fix types tests. Dave Halter 2014-11-20 11:16:52 +01:00
  • 2c3a7b6d6c Imports are not Statements. Dave Halter 2014-11-20 02:29:24 +01:00
  • 164518b993 Get docstrings working. Dave Halter 2014-11-20 02:19:01 +01:00
  • ce5d428d22 At least functions generate docstrings again. Dave Halter 2014-11-20 01:37:18 +01:00
  • 22b288fc73 Change docstring test function names, so that dynamic param completion doesn't interfere (especially because some of those files still generate parser errors). Dave Halter 2014-11-20 00:35:48 +01:00
  • b5418d9d73 Small issue with dynamic params. Dave Halter 2014-11-20 00:25:03 +01:00
  • e6364fdd8b Fix os.path issues. Dave Halter 2014-11-19 18:40:28 +01:00
  • ba0e61d99f Star imports are now part of the ModuleWrapper. Dave Halter 2014-11-19 18:09:49 +01:00
  • 08bdcfb8ca Small issue with relative imports that don't contain a path after from. Dave Halter 2014-11-19 15:22:18 +01:00
  • aeaf073ca2 Move some tests that targeted completion on import statements into a separate file. Dave Halter 2014-11-19 14:14:27 +01:00
  • bb9d6b4832 Temporarily disable on import completion. Not sure if we're going to do it with the normal parser. Dave Halter 2014-11-19 13:24:45 +01:00
  • c71646a9a0 Fixed relative imports. Dave Halter 2014-11-19 13:13:06 +01:00
  • 6c5f3419ff 'as' test and implementation for ImportName. Working pretty well. Dave Halter 2014-11-19 13:07:08 +01:00
  • e630eeb397 Care for import aliases better. Dave Halter 2014-11-19 12:45:39 +01:00
  • 1c240e75d3 Replace get_all_import_names with a leaf search method in Simple. Dave Halter 2014-11-19 01:31:08 +01:00