1
0
forked from VimPlug/jedi
Commit Graph

275 Commits

Author SHA1 Message Date
Dave Halter d99d4deebf Merge branch 'values' 2017-09-28 16:19:38 +02:00
Dave Halter 18bab194c0 Move a few imports out of functions. 2017-09-28 14:38:11 +02:00
Dave Halter e62d89bb03 Move the is_string etc functions to the helpers module. 2017-09-28 14:28:07 +02:00
Dave Halter 6b76e37673 Make some functions private in evaluate/iterable. 2017-09-28 14:19:11 +02:00
Dave Halter 612ad2f491 Move eval_subscript_list to the syntax_tree module. 2017-09-28 14:17:37 +02:00
Dave Halter 65ef6a3166 Move py__getitem__ to the context module. 2017-09-28 14:10:32 +02:00
Dave Halter 30df79e234 Rename py__iter__types to iterate_contexts. 2017-09-28 13:19:33 +02:00
Dave Halter 8c0845cf0c Move iterate logic to the context. 2017-09-28 13:13:09 +02:00
Dave Halter 47c249957d Make BuiltinMethod a Context object. 2017-09-28 12:04:44 +02:00
Dave Halter ed43a68c03 Remove the precedence module in favor of the syntax tree module. 2017-09-27 19:09:30 +02:00
Dave Halter 313e1b3875 Use a different way of executing functions. 2017-09-27 16:07:24 +02:00
Dave Halter b74c8cb033 To be able to customize ContextSet, move a subclass to evaluate.context 2017-09-27 09:20:58 +02:00
Dave Halter ee52cc7501 Fix most dynamic array issues. 2017-09-26 17:26:33 +02:00
Dave Halter 592f2dac95 A lot more fixes for tests. 2017-09-26 16:29:07 +02:00
Dave Halter 174eff5875 Replace a lot more of empty sets and unite calls. 2017-09-25 23:08:59 +02:00
Dave Halter 5328d1e700 Add a ContextSet.
This is not bug free yet, but it's going to be a good abstraction for a lot of small things.
2017-09-25 11:04:09 +02:00
Dave Halter a433ee7a7e Move common to evaluate.utils. 2017-09-20 20:33:01 +02:00
Dave Halter 84ec5eda4c Remove two internal deprecations that don't seem to matter. 2017-09-20 18:28:46 +02:00
Dave Halter a8a15114ac Fix namedtuple support
There were a couple issues:
 - namedtuple with one member didn't work
 - namedtuple content access was never possible
 - operator.itemgetter didn't work properly. Corrected py__bool__ for FakeSequence

Fixes #730.
2017-09-12 11:06:39 +02:00
Dave Halter e85000b798 Replace memoize_default with two nicer functions. 2017-09-05 18:46:16 +02:00
Dave Halter c47f5ca68c Fix issues with yield. 2017-09-01 18:38:19 +02:00
Dave Halter 8d6732c28c Remove a print statement. 2017-07-16 22:16:13 +02:00
Dave Halter 7e4504efbd Fix ellipsis issues of python2. 2017-07-16 20:07:49 +02:00
Dave Halter a0b65b52c6 used_names -> get_used_names(). 2017-04-12 08:56:11 +02:00
Dave Halter 1625834f81 Move get_comp_fors out of the parser. 2017-04-08 14:16:00 +02:00
Dave Halter 6a9c2f8795 Start using ContextualizedNode for py__iter__. 2017-03-28 01:34:07 +02:00
Dave Halter bb9ea54402 Remove ImplicitTuple. 2017-03-27 23:18:06 +02:00
Dave Halter e7fcc21863 Remove both MergedNodes and AlreadyEvaluated, they are unused. 2017-01-23 20:36:26 +01:00
Dave Halter 7623b1e350 Removed tree.is_node.
It's not needed anymore, because we have Node/Leaf.type now.
2017-01-23 20:34:30 +01:00
Dave Halter 1f15ee8bc7 Fix an issue with contexts. 2017-01-06 00:08:01 +01:00
Dave Halter ae8e43d3c7 Move get_node() to tree_node and replace all the custom classdefs/funcdefs. 2017-01-05 23:43:12 +01:00
Dave Halter 01099ce5a9 Create a name for the generators. 2017-01-04 18:12:33 +01:00
Dave Halter 5d071ede8c Fix the typing module issues in Python 3.6. 2017-01-02 15:01:12 +01:00
Dave Halter b7ae8a746c Simplify recursion issues. 2016-12-18 17:24:20 +01:00
Dave Halter 437f915f35 Delete a lot of names dict related stuff but also other things that were not used anymore. 2016-12-17 16:51:28 +01:00
Dave Halter 5fb5580259 Fix a few things that were broken by the mixed object refactoring. 2016-12-16 17:29:37 +01:00
Dave Halter edf1c319c6 Fix all remaining static analysis tests. This time we have just hacked around and added proper contexts to the iterables. It's not as clean as it could be. 2016-12-15 00:34:14 +01:00
Dave Halter 6c4abcc84c Fix some more issues with imports and attribute warnings of static analysis. 2016-12-14 01:35:55 +01:00
Dave Halter 97ccb74ebb Api classes test fixes. 2016-12-07 01:00:03 +01:00
Dave Halter 2edbe44d64 Fix some next() stuff. 2016-12-03 03:45:27 +01:00
Dave Halter 7607db801f Rewrite the next function. 2016-12-03 02:54:09 +01:00
Dave Halter da1a163da7 Fix python 2 string iterators. 2016-12-03 02:08:40 +01:00
Dave Halter ba8a3215f2 Fix some issues with usages and imports. 2016-12-02 23:51:01 +01:00
Dave Halter dfc06dfe83 A lot of small bug fixes. 2016-12-02 15:08:54 +01:00
Dave Halter 16a48a7a45 Fix a lot of list comprehensions. 2016-12-02 11:17:55 +01:00
Dave Halter c3f6172ca2 Fix dynamic arrays. 2016-11-27 21:51:05 +01:00
Dave Halter c1b7acc9ac Get finally rid of context.type. 2016-11-26 10:32:44 +01:00
Dave Halter bad1f85f8f Improvements towards arrays / predefined names logic. 2016-11-25 23:31:45 +01:00
Dave Halter 8fd08c86b7 Fix some mostly iterable related stuff. 2016-11-24 21:06:55 +01:00
Dave Halter 7ed1c95737 Fix dynamic param tests. 2016-11-24 00:11:26 +01:00