1
0
forked from VimPlug/jedi
Commit Graph

73 Commits

Author SHA1 Message Date
Dave Halter
a0a438fe6f Forgot an iterator in context sets. 2017-09-26 18:32:42 +02:00
Dave Halter
00f2f9a90c Fix the final issues with the ContextSet refactoring. 2017-09-26 18:17:19 +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
9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter
d6d25db9a2 Remove __str__ from name. 2017-04-12 23:06:11 +02:00
Dave Halter
448bfd0992 Move the python parser tree. 2017-03-16 17:20:32 +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
eaf0100446 Some analysis improvements. 2016-12-11 15:03:19 +01:00
Dave Halter
565989cf07 More small bug fixes. 2016-12-02 15:21:50 +01:00
Dave Halter
bad1f85f8f Improvements towards arrays / predefined names logic. 2016-11-25 23:31:45 +01:00
Dave Halter
31514dfe76 Fix a lot on PEP 484. 2016-11-14 23:29:09 +01:00
Dave Halter
03aa630932 Fixed all generator tests. 2016-11-14 20:57:46 +01:00
Dave Halter
b2bdfe4a28 Array fixes except for conversions. 2016-11-13 16:18:46 +01:00
Dave Halter
c537d360f3 More fixes to *args type inference. 2016-10-30 01:35:36 +02:00
Dave Halter
75b67af000 Starting to improve function calls. 2016-10-22 21:02:15 +02:00
Dave Halter
c9a5caa96e Fix: dicts lookups were not working in all cases. 2015-12-08 22:37:30 +01:00
Dave Halter
bef5fca516 Refactor compiled.CompiledObject so it always owns an evaluator instance. 2015-12-08 02:19:33 +01:00
Dave Halter
62468fb402 reversed and for loops now produce strings in the correct order. 2015-10-14 16:50:26 +02:00
Dave Halter
844a011193 Replacing the types list with a types set. Some tests are failing, though. 2015-10-13 18:03:36 +02:00
Dave Halter
ef4b424cda Replace pr with tree, #566. 2015-04-28 01:34:31 +02:00
Dave Halter
5334f8dbad Implemented the in operator in a very simple fashion: It returns nothing. 2015-01-09 16:05:09 +01:00
Dave Halter
47615ae786 Remove pr.Array.type identifiers. 2014-12-19 01:05:52 +01:00
Dave Halter
4897791901 Remove old precedence stuff. 2014-12-16 18:28:45 +01:00
Dave Halter
a96d1b8d0f fix something with not/- prefixes. 2014-12-04 17:51:14 +01:00
Dave Halter
c152a1c58b Actually replace tree with representation (in all the imports). 2014-11-23 19:46:52 +01:00
Dave Halter
56102e408e Small glitch with the change of return statements to loops in precedences. 2014-11-06 04:06:40 +01:00
Dave Halter
d58046f38f Changed normal precedence calculation. 2014-11-06 03:47:42 +01:00
Dave Halter
fae798adfe Simplify precedence.factor_calculate. 2014-11-05 23:21:32 +01:00
Dave Halter
42d6b57599 precedence._is_string -> precedence.is_string 2014-09-04 14:13:26 +02:00
Dave Halter
f7a1c110ba Fix remaining issues with CompiledName.name change. 2014-09-03 19:47:37 +02:00
Dave Halter
bb5ffe9343 CompiledObject.name returns a Name now, not a string. This is more consistent with the Jedi design and doesn't lead to bugs while ducktyping. 2014-09-03 19:43:21 +02:00
Dave Halter
6ba0b7b81e lower than/greater than operators evaluate to a boolean now. This is not a 100% correct, because it doesn't evaluate __gt__, etc. But that's ok for now. 2014-08-22 00:26:55 +02:00
Dave Halter
2a964d4e48 Also implement the or operator. 2014-08-20 16:28:04 +02:00
Dave Halter
148d17b3be Implementation of the and operation. 2014-08-20 16:21:33 +02:00
Dave Halter
d6dd7cd55e Move process_precedence_element from the Evaluator to the precedence module. 2014-08-20 15:59:37 +02:00
Dave Halter
09ca47fa93 Introduce a dedicated isinstance function implementation. 2014-08-19 23:57:59 +02:00
Dave Halter
eeac77d360 Also support the not operator. 2014-08-12 18:09:59 +02:00
Dave Halter
8ed89e8245 implement !=, ==, is, is not operators to work in if statements (they also work in in non if contexts and return a bool value.), includes tests. 2014-08-12 17:59:19 +02:00
Dave Halter
5e9d9573d5 Don't warn on addition of an int literal plus an unknown int number. 2014-07-22 16:44:10 +02:00
Dave Halter
f7c8c43fbc check not only - but also + for numbers. 2014-07-22 16:18:57 +02:00
Dave Halter
852cdad754 Operator fixes. Subclass of Simple, now. 2014-07-22 16:02:34 +02:00
Dave Halter
15f42d93d7 it should be possible to find the origin of an operation, if it's a faulty one (static analysis) 2014-07-22 14:52:58 +02:00
Dave Halter
50ceef6e09 1 + '1' TypeErrors are now detected, but not shown in the right place 2014-07-22 10:44:56 +02:00
Dave Halter
bdcbac160b fix string/array (sequence) multiplications with integer. 2014-06-26 00:49:56 +02:00
Dave Halter
c6aea92753 fix issues with tokens in expression list 2014-06-10 11:03:36 +02:00
Dave Halter
cb430c4c36 add a merged array class to account for array additions 2014-06-06 02:51:48 +02:00
Dave Halter
77baabb93b % operation returned both left and right side, but only the left side is really important. 2014-05-19 13:26:12 +02:00
Dave Halter
bc7896f93d unicode issues in usage matching 2014-04-29 12:20:25 +02:00