Commit Graph

6924 Commits

Author SHA1 Message Date
Dave Halter
35efdd84d2 Add get_param_names to the function execution, which is needed to do some filtering 2019-09-03 09:22:31 +02:00
Dave Halter
1495a0ec4c Move the normal anonymous arguments case over to names 2019-09-03 01:28:54 +02:00
Dave Halter
33586deef1 Prefer annotations in SimpleParamName 2019-09-03 01:03:10 +02:00
Dave Halter
7bdd71f9a7 Add some dynamic inference checks for annotations 2019-09-03 00:56:42 +02:00
Dave Halter
a67861a320 Avoid using arguments.get_executed_param_names_and_issues 2019-09-03 00:47:10 +02:00
Dave Halter
fe8a605d4a Remove get_executed_param_names_and_issues from FunctionExecution 2019-09-03 00:30:22 +02:00
Dave Halter
7ad7d22fb0 Use function/arguments intead of execution 2019-09-02 21:50:56 +02:00
Dave Halter
bdb01c7546 Make FunctionExecutionContext.arguments private 2019-09-02 21:24:21 +02:00
Dave Halter
73003a995b _ArrayInstance -> _DynamicArrayAdditions 2019-09-02 19:49:21 +02:00
Dave Halter
06890203dd var_args -> arguments 2019-09-02 19:48:17 +02:00
Dave Halter
e97bb1d2e5 Fix the final issues about parameter arguments 2019-09-02 19:27:39 +02:00
Dave Halter
4fd1149be2 Fix infering of dynamic params 2019-09-02 10:05:12 +02:00
Dave Halter
51475a5b39 Remove an unnecessary piece of code from goto 2019-09-02 09:52:58 +02:00
Dave Halter
a0cadd9375 Use Context.create_name instead of weird playing with params everywhere 2019-09-02 09:38:54 +02:00
Dave Halter
b4dc95553f Use SimpleParamName everywhere it's needed 2019-09-02 09:29:43 +02:00
Dave Halter
edb17b8e7c Refactor params and what execution contexts need 2019-09-01 14:14:42 +02:00
Dave Halter
59f26ad6ab Fix a TODO 2019-08-30 01:18:13 +02:00
Dave Halter
286d2c9b1a Make the order of overloaded functions correct 2019-08-30 01:11:11 +02:00
Dave Halter
04bc9eb62c Get py__simple_getitem__ working on dicts that have a dict as a param, see #1385 2019-08-29 09:27:43 +02:00
Dave Halter
9c950321df Move some code from SequenceLiteralValue to DictLiteralValue 2019-08-28 23:47:32 +02:00
Dave Halter
4572503c9f Fix usages in context of the new parso parameter include_setitem=True 2019-08-28 22:56:16 +02:00
Dave Halter
7d28f4ce5b execution_allowed should be called with nodes 2019-08-28 18:24:26 +02:00
Dave Halter
2a27ec37ae Move a repr function 2019-08-28 10:12:00 +02:00
Dave Halter
066b189bfa Fix cases where dicts are passed to dicts and generics were not properly applied 2019-08-27 20:41:46 +02:00
Dave Halter
18ecb5a746 Small rename 2019-08-26 23:34:01 +02:00
Dave Halter
305bfd3a3c Change a test so it works with generics 2019-08-26 21:53:41 +02:00
Dave Halter
8311328a8e Get py__simple_getitem__ modifications working for list/dict instances 2019-08-26 21:48:41 +02:00
Dave Halter
24b392b915 Random objects should not be affected by list/dict modifications 2019-08-26 19:28:30 +02:00
Dave Halter
356c25a399 Add a way how dict setitem can be understood
Needs the latest parso commits
2019-08-26 19:27:33 +02:00
Dave Halter
eb5586d7e0 Move the dynamic module to dynamic_params 2019-08-25 17:12:04 +02:00
Dave Halter
b7febc1960 Move the dynamic arrays code 2019-08-25 17:08:42 +02:00
Dave Halter
d31ca7e9f0 Add a comment about how _ArrayInstance is used 2019-08-25 17:00:57 +02:00
Dave Halter
0f13e02fc2 check_array_additions -> _check_array_additions 2019-08-25 16:46:08 +02:00
Dave Halter
2a86d810cd Remove methods that are not used 2019-08-25 14:36:42 +02:00
Dave Halter
473dbb0f69 Create separate classes for FakeSequence 2019-08-25 14:31:15 +02:00
Dave Halter
51912db46a Remove _FakeArray, because it's no longer needed 2019-08-25 13:58:35 +02:00
Dave Halter
41dc514546 Enable a sys path test that is working now 2019-08-25 13:20:37 +02:00
Dave Halter
e3d2bce7ff Reenable some tests 2019-08-25 02:37:52 +02:00
Dave Halter
9b21c02819 Add a method implementation, that doesn't seem to be used, but it might one day be. 2019-08-24 14:50:59 +02:00
Dave Halter
c94bce315a Merge branch 'refactoring' 2019-08-24 14:38:45 +02:00
Dave Halter
8beea77bc8 Merge branch 'master' of github.com:davidhalter/jedi 2019-08-24 14:34:09 +02:00
Dave Halter
9290b7291b get_param -> get_executed_param_name 2019-08-24 14:33:19 +02:00
Dave Halter
4969b52ddf Reuse a function 2019-08-24 14:18:08 +02:00
Dave Halter
06a6cea02d DynamicExecutedParams -> DynamicExecutedParamName 2019-08-24 14:14:45 +02:00
Dave Halter
9469533b9f Make InstanceExecutedParam a ParamName 2019-08-24 14:08:11 +02:00
Dave Halter
98d0fc632e Some more renames 2019-08-24 14:02:04 +02:00
Dave Halter
622db8d2d7 Actually start using names for executed param names 2019-08-24 13:52:50 +02:00
Dave Halter
0619d58cd3 search_params -> search_param_names 2019-08-24 13:47:19 +02:00
Dave Halter
b1d2f2462b get_executed_params_and_issues -> get_executed_param_names_and_issues 2019-08-24 13:45:47 +02:00
Dave Halter
bccc85f453 Remove a strange comment 2019-08-24 13:41:41 +02:00