1
0
forked from VimPlug/jedi
Commit Graph

259 Commits

Author SHA1 Message Date
Dave Halter 936cef97e9 Fix param position lookups. Also forward annotations have the correct resolution path now (starting at the end of the file). 2015-12-22 11:25:32 +01:00
Dave Halter 5791860861 Actual forward reference annotations are working pretty smooth now. 2015-12-20 22:57:41 +01:00
Dave Halter 7b8d4e86ac The evaluator recursion limitations are now reset in static analysis for each node, otherwise it's incredibly unprecise. 2015-12-13 17:18:19 +01:00
Dave Halter 75ac2b9686 Enable better ways for analysis to analyze loop variables. 2015-12-11 20:25:49 +01:00
Dave Halter 8d3be10270 Fix issues in Python 2.7. 2015-12-10 17:20:21 +01:00
Dave Halter afb1d6c3b8 Remove evaluator param from py__call__. 2015-12-10 16:20:46 +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 d65684a40b Fix py__getitem__ on Array. 2015-12-05 02:48:20 +01:00
Dave Halter db060c70c9 Start creating py__getitem__. 2015-12-04 12:08:29 +01:00
Dave Halter 8daa0b8784 Introduce an additional node parameter for py__iter__ which helps static analysis. 2015-12-03 11:52:54 +01:00
Dave Halter d835ffc5a3 Get rid of ordered_elements_of_iterable and use py__iter__ instead. 2015-12-02 13:39:22 +01:00
Dave Halter 55615fb3c1 unite returns a set now, this simplifies all the set(unite( calls. 2015-11-28 17:52:39 +01:00
Dave Halter 8d65129a19 Power operation was not implemented before. 2015-11-20 18:26:39 +01:00
Dave Halter 030131d705 Forget to make the set comprehension result a set(). 2015-11-20 15:05:15 +01:00
Dave Halter ffaf81bf1b Fix: Set/Dict Comprehensions don't raise an error. They are just ignored for now. 2015-11-20 14:51:52 +01:00
Dave Halter 595b803f1f Fix an issue with strings that can be chained in the parser. 2015-11-17 11:38:51 +01:00
Dave Halter 03efbca586 Tried to get the recursion issues with if stmts working. 2015-11-16 11:44:25 +01:00
Dave Halter 306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
Dave Halter 4549157d39 parser.Tree.ForStmt got more utility functions. 2015-11-08 22:29:49 +01:00
Dave Halter dd6ade194a += assignments bug fix. 2015-11-01 13:21:41 +01:00
Dave Halter 05798734bf Fix an issue with the new set of types instead of lists.
This commit also includes some comments and improvements for debugging.
2015-10-29 20:53:14 +01:00
immerrr 4eb3cf7921 Improve virtualenv support & egg-link resolution
- add sys_path= kwarg to Script & Evaluator constructors

- store sys_path for each evaluator instance

- replace get_sys_path with get_venv_path

- get_venv_path: use addsitedir to load .pth extension files

- get_venv_path: look for egg-link files in all directories in path
2015-10-26 13:03:42 +03:00
Dave Halter e947124d83 Small improvments to the += / for logic. 2015-10-15 03:24:21 +02:00
Dave Halter 4b85d342ea Trying to fix issues with for loops and += operators. 2015-10-15 03:00:50 +02: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 3a306a4f25 Fix comprehensions type issues. 2015-09-22 02:13:20 +02:00
Dave Halter 80492265cf Remove print statements and reenable the if statement scanning that allows names to get resolved in 'if 0:' clauses. Makes all tests work again. 2015-07-01 14:00:50 +02:00
Dave Halter d739828a4b call_of_name was modified. Fixed an issue that was created earlier. 2015-07-01 13:58:05 +02:00
Dave Halter d694ab83a3 Memoizing statements doesn't work anymore.
Statements now need to be evaluated at least if predefined_names_dict is set.
2015-06-29 13:32:39 +02:00
Dave Halter db1ed70318 Recursions on if statements when using the advanced flow evaluation shouldn't be possible anymore. 2015-06-29 12:03:31 +02:00
Dave Halter 64fcbbba79 First implementation of doing precise if statement filtering. 2015-06-22 22:16:38 +02:00
Dave Halter b8bb258677 Get rid of get_importer and clean up imports in general. 2015-04-28 01:41:01 +02:00
Dave Halter ef4b424cda Replace pr with tree, #566. 2015-04-28 01:34:31 +02:00
Dave Halter d038fba9df er.wrap -> Evaluator.wrap 2015-04-23 13:51:42 +02:00
Dave Halter d04241b482 Goto should not include imports that cannot be followed. 2015-04-23 02:37:22 +02:00
Dave Halter df9452f210 Trying to change the import logic completely. We now have a sys.modules like cache. 2015-04-20 14:47:33 +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 0b531d2b17 print in Python 2 shouldn't be a function, it's a keyword (without the future import). 2015-03-06 01:01:20 +01:00
Dave Halter b489019f5b Most integration tests (except 2) pass if we don't always make the use of an ExprStmt. 2015-03-05 01:55:25 +01:00
Dave Halter f273e314b6 Preparing for an eventual replacement of using expr_stmt for all nodes. 2015-03-05 00:07:50 +01:00
Dave Halter 5322c4a965 decorator dotted_names goto lookups. 2015-03-02 14:31:12 +01:00
Dave Halter 5a845e4dea Fix a decorator goto issue. 2015-03-02 13:23:26 +01:00
Dave Halter b8a8c4d402 Fix an array lookup issue. list.pop calls work now pretty well and return the right type. 2015-02-26 13:57:54 +01:00
Dave Halter 47fc3cbdfe Functions are not exceptions anymore in the name finder. 2015-01-08 14:14:01 +01:00
Dave Halter b982b746e7 Fix problems with += stmts. 2015-01-06 11:24:13 +01:00
Dave Halter 54fcf7af9d Fix goto. 2015-01-05 23:55:38 +01:00
Dave Halter ab9571bccd Remove FakeStatement 2014-12-18 03:24:12 +01:00
Dave Halter b03330c5d7 Updating the docs of evaluate/__init__. 2014-12-15 16:00:16 +01:00
Dave Halter 5f892d62a6 Delete legacy code from evaluate. 2014-12-15 15:34:15 +01:00