1
0
forked from VimPlug/jedi
Commit Graph

66 Commits

Author SHA1 Message Date
Dave Halter 85abc55e89 Remove unused code 2017-12-03 19:39:31 +01:00
Dave Halter 15d9e64281 Start creating access objects in a different way 2017-12-03 19:37:03 +01:00
Dave Halter 74495d518f Remove the old now unused fake code 2017-11-28 18:39:05 +01:00
Dave Halter 7263d8565b Add an access abstraction (only array tests work, yet)
The access abstraction will be the new way of accessing builtin objects. This way it will be easier to move that to another process
2017-11-25 19:47:49 +01:00
Dave Halter 4dc2ad281d Make some faked things private 2017-11-22 19:22:18 +01:00
Dave Halter cd8932fbfc Add a latest grammar to the evaluator and use it to avoid importing from parso import parse. 2017-05-24 00:37:36 -04:00
Dave Halter 9bca3d39f5 Actually use parso now instead of Jedi. 2017-05-19 14:20:14 -04:00
Dave Halter b4039872bd Replace Scope.subscopes with iter_funcdefs and iter_classdefs. 2017-04-30 01:36:17 +02:00
Dave Halter a0b65b52c6 used_names -> get_used_names(). 2017-04-12 08:56:11 +02:00
Dave Halter 4cc467123c Use PythonNode and not Node in the evaluator. 2017-04-01 17:39:52 +02:00
Dave Halter 448bfd0992 Move the python parser tree. 2017-03-16 17:20:32 +01:00
Dave Halter 55c9fd3227 Fix an issue in the fake parser 2017-03-15 08:44:49 +01:00
Dave Halter 9efb3f0af2 More direct parser usage removals. 2017-03-14 19:31:54 +01:00
Dave Halter 97fc3bc23c Refactored the parser calls. Now it's possible to use jedi.parser.python.parse to quickly parse something. 2017-03-14 00:38:58 +01:00
Matthias Bussonnier fc27ca1b6a 'fix a couple of error locations' 2017-02-24 13:03:03 +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 ce0a02f6c1 Fix an issue with executed python objects. 2016-12-17 14:08:49 +01:00
Dave Halter f355c04cae Finally fixed all black box tests in python 2. 2016-12-03 13:37:51 +01:00
Dave Halter bad1f85f8f Improvements towards arrays / predefined names logic. 2016-11-25 23:31:45 +01:00
Dave Halter 90af0c36e0 Function -> FunctionContext and fakes use the FunctionContext, too. 2016-10-25 09:59:42 +02:00
Dave Halter 2e6603cc2e A lot of small improvements. 2016-10-22 17:40:42 +02:00
Dave Halter 3654de97b0 Better filter for arrays. 2016-10-16 14:57:08 +02:00
Dave Halter 0a0cb2a722 Fix generators. 2016-10-16 04:17:11 +02:00
Dave Halter 37ba971787 Trying to start implementing instance filters. 2016-10-06 16:35:53 +02:00
Dave Halter 885cf62a12 Remove the position_modifier from the parser. 2016-09-18 00:50:31 +02:00
Dave Halter 1226962922 Remove dedents from the parser tree. No need for them. 2016-09-11 13:03:29 +02:00
Dave Halter 6f598b1157 Use the memoize function for faked arguments only when needed.
It's important to note that memoizing every object would mean that
theoretically all objects passed through get_faked would get memoized. This
would have been a possible memory leak, which we should avoid.
Obviously the previous solution proposed in #649 was still better, but this
issue was a new one. Also using str() around keys was not a good idea.

Refs #649.
2016-07-31 15:02:30 +02:00
ColinDuquesnoy 600a087446 Merge branch 'dev' into bugfix/performances_degradation
# Conflicts:
#	test/test_regression.py
2016-07-30 16:52:17 +02:00
Dave Halter ff47fab62a Remove Whitespace class and replace it with Newline and Endmarker. 2016-07-24 17:16:36 +02:00
ColinDuquesnoy 07f76a1703 Merge remote-tracking branch 'upstream/dev' into bugfix/performances_degradation
# Conflicts:
#	jedi/evaluate/compiled/fake.py
2016-07-21 10:41:11 +02:00
Dave Halter 9245181a8c Some python 2.7 (and 3.3) compatibility improvements. 2016-07-03 02:54:21 +02:00
Dave Halter 2700c2cca4 Make it possible to import Jedi in Python 2 again. 2016-05-28 20:20:45 +02:00
Dave Halter cc331d62e0 Get closer to fixing a lot of issues with the completion for repl. 2016-05-15 14:26:22 +02:00
Dave Halter eb2e41f771 Grammar versioning has now a smoother interface. 2015-12-25 19:30:25 +01:00
Dave Halter c4906e0e3f Rework the parser so we can use arbitrary start nodes of the syntax.
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter 9a93d599da Fix: __module__ doesn't need to be properly defined. 2015-12-20 02:35:23 +01:00
ColinDuquesnoy 6e3b5dfb23 Add memoize_function to cache and use it in fake.get_faked
The previously added test should now pass.

Fix #591
2015-12-13 20:10:09 +01:00
Dave Halter 8d3be10270 Fix issues in Python 2.7. 2015-12-10 17:20:21 +01: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 79caa2186e list(open().read()) should work now, fixes #412. 2015-04-09 00:46:31 +02:00
Dave Halter 0ceadf69a3 Fake objects don't need an ExprStmt for the docstring anymore. 2015-03-05 14:24:19 +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 e53e211325 Python 2 compatibility in fake module. 2014-12-16 02:07:20 +01:00
Dave Halter 23417f0288 Fix docstrings in fake/skeleton objects. 2014-12-11 00:05:49 +01:00
Dave Halter 9f45f18ad1 Added a grammar param to the parser. 2014-11-24 01:10:39 +01:00
Dave Halter c152a1c58b Actually replace tree with representation (in all the imports). 2014-11-23 19:46:52 +01:00
Dave Halter ce5d428d22 At least functions generate docstrings again. 2014-11-20 01:37:18 +01:00
Dave Halter acec5fe76f fake docstrs fixed 2014-02-26 02:38:28 +01:00
Dave Halter 5e5bb618ea remove token.py, docstrings are now just normal tokens until used 2014-02-26 01:13:38 +01:00