1
0
forked from VimPlug/jedi
Commit Graph

343 Commits

Author SHA1 Message Date
Dave Halter
d04241b482 Goto should not include imports that cannot be followed. 2015-04-23 02:37:22 +02:00
Dave Halter
18c4b5f7dc Add py__package__ to the ModuleWrapper, which makes relative imports easy to implement and fixed a lot of other things. 2015-04-21 16:12:24 +02:00
Dave Halter
5c65e9cdaa py__name__ now returns the value found in the modules cache. 2015-04-20 16:40:10 +02:00
Dave Halter
77a37be83a Add a py__path__ method to the ModuleWrapper, that behaves very similar to a package's __path__ attribute. 2015-04-20 16:21:00 +02:00
Dave Halter
8fca3f78a1 Add a py__name__ call to modules. This makes listing the qualified names of modules possible (in combination with the module_name_cache). Fixes #519. 2015-04-14 17:36:20 +02:00
Dave Halter
e2455eb670 Call signatures should work better for builtin classes (ducktyping). Fixes #515. 2015-04-10 13:45:23 +02:00
Dave Halter
5a845e4dea Fix a decorator goto issue. 2015-03-02 13:23:26 +01:00
Dave Halter
d7b69ab92c Fix a small bug in the logic of finding self variables. 2015-02-25 13:54:13 +01:00
Dave Halter
0ae74a7666 Replace a __bases__ call with an __mro__ call, because the latter is closer to how Python actually works. __bases__ is never used. 2015-02-23 19:07:23 +01:00
Dave Halter
4f2d4992da Fix an mro resolution issue. 2015-02-23 19:04:35 +01:00
Dave Halter
4613a810a5 Some small refactorings to the names_dict/deep_ast_copy logic. 2015-02-12 13:24:08 +01:00
Dave Halter
bcf6be0636 Radically rewrote deep_ast_copy. 2015-02-12 02:25:54 +01:00
Dave Halter
315c687048 Remove the need for the check_first param in deep_ast_copy. 2015-02-11 14:46:51 +01:00
Dave Halter
6e5ba3de87 Fix remaining issue siwh the Param refactoring. 2015-02-11 01:40:18 +01:00
Dave Halter
cdbe26786a Trying to get ird of the weird param generation in the parser tree. 2015-02-10 15:49:26 +01:00
Dave Halter
a095f8d9e0 Replace some isinstance checks in the parser tree with .type checks. 2015-02-09 12:27:29 +01:00
Dave Halter
8125d5f562 Remove asserts and calculate them dynamically. 2015-02-05 20:16:55 +01:00
Dave Halter
d0f1fd5267 Rename Simple -> BaseNode. 2015-02-05 14:18:30 +01:00
Dave Halter
a77ecdbed6 Remove param from get_statement_for_position. 2015-02-05 12:28:55 +01:00
Dave Halter
a4bd412801 Fix an issue with the positions of InstanceNames that used the original position_modifier. 2015-02-02 02:29:39 +01:00
Dave Halter
9a0f1363e3 Start removing the print statements that were used for debugging. 2015-02-01 02:32:52 +01:00
Dave Halter
bc118e8047 Simplify the fast parser tokenizer more. Now it is more readable and less buggy (+bugfixes). 2015-01-31 20:09:44 +01:00
Dave Halter
cf223a71f5 Add a position modifier for the fast parser. Not yet in use though. 2015-01-15 13:57:56 +01:00
Dave Halter
582b9b01af Get invalid INDENTs working.
The following DEDENT's are removed.
2015-01-12 12:22:57 +01:00
Dave Halter
5c98f6cf04 Suites don't have to contain statements anymore, this makes autocompletion better in certain cases. 2015-01-12 01:11:46 +01:00
Dave Halter
53b456dff2 Cleaning up. 2015-01-09 01:55:23 +01:00
Dave Halter
e8ef3b8ad4 Remove legacy code. 2015-01-09 01:45:09 +01:00
Dave Halter
144c20579b Get rid of get_defined_names in compiled modules. 2015-01-08 17:53:20 +01:00
Dave Halter
bd304d33c7 Get rid of Function's get_magic_function_X, they are not used anymore. 2015-01-08 14:17:33 +01:00
Dave Halter
47fc3cbdfe Functions are not exceptions anymore in the name finder. 2015-01-08 14:14:01 +01:00
Dave Halter
0dc61292b9 Remove get_defined_names methods from evaluate representation objects. 2015-01-08 13:42:52 +01:00
Dave Halter
a20fd12de9 Remove all scope_names_generator usages. 2015-01-08 13:24:01 +01:00
Dave Halter
83a94c12c9 Correct global name issues. 2015-01-08 01:20:53 +01:00
Dave Halter
987121ae5c Filter names in a separate function so that it can be used for both completion and name lookups. 2015-01-07 13:56:35 +01:00
Dave Halter
ec76d57679 Start using names_dicts for completion as well. 2015-01-07 01:49:38 +01:00
Dave Halter
494a3e3307 Fix usages. 2015-01-06 16:54:01 +01:00
Dave Halter
9178d314b0 Add search_global to names_dicts calls. 2015-01-06 15:30:59 +01:00
Dave Halter
8bad12522a Fix issues with module attributes 2015-01-06 01:12:55 +01:00
Dave Halter
65b33013e5 Few small issues. 2015-01-05 23:31:32 +01:00
Dave Halter
1d2704fb68 Descriptors work with names_dicts now. 2015-01-03 11:07:38 +01:00
Dave Halter
8157dd2da8 Fix most instance related issues. 2015-01-02 01:12:14 +01:00
Dave Halter
0478ff907f names_dicts for instances. 2015-01-02 00:19:07 +01:00
Dave Halter
9de4a5479c Start using names_dicts instead of scope_names_generator. 2015-01-01 23:27:03 +01:00
Dave Halter
e22aed9ef4 Restructure ExecutedParam so that it works better with generated instances. 2014-12-19 12:42:09 +01:00
Dave Halter
47615ae786 Remove pr.Array.type identifiers. 2014-12-19 01:05:52 +01:00
Dave Halter
5730e5add0 parser tree docstring updates. 2014-12-16 18:10:28 +01:00
Dave Halter
4af51a9516 Removing legacy code from evaluate/representation. 2014-12-15 16:02:19 +01:00
Dave Halter
f2d35c3ff1 Reenable star import caching. 2014-12-15 15:19:22 +01:00
Dave Halter
6afc5ccca5 Few docstring fixes. 2014-12-11 15:32:45 +01:00
Dave Halter
95620accdb Fix tests for namespace packages. 2014-12-10 19:19:13 +01:00