Dave Halter
3c75f27376
Move the base Context stuff to another module to keep context free for imports.
2017-09-30 16:46:07 +02:00
Dave Halter
32917d5565
Remove the function context to a separate module.
2017-09-29 15:28:17 +02:00
Dave Halter
95930d293c
Move instance module to the context package.
2017-09-29 15:14:56 +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
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
d47804edef
Don't use literal_eval
...
Using it without control over the input leads to various possible exceptions.
Refs #868 .
2017-09-09 19:23:06 +02:00
Dave Halter
3bceef075a
Merge branch 'numpydoc' of https://github.com/bcolsen/jedi
2017-09-09 18:50:19 +02:00
Dave Halter
077bccadc7
Remove AnonymousFunctionExecution and simplify everything.
2017-09-09 17:58:06 +02:00
Dave Halter
04c4313dc7
Start refactoring arguments.
2017-09-09 17:58:06 +02:00
Dave Halter
e85000b798
Replace memoize_default with two nicer functions.
2017-09-05 18:46:16 +02:00
bcolsen
d19a97f53a
Numpydocs and compiled objects return types
2017-08-08 22:46:33 -06:00
Dave Halter
d0127a7f61
Fix a warning that happened if there was no valid Python function in a place.
2017-05-25 12:26:07 -04: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
f2a77e58d8
Merge branch 'dev' of github.com:davidhalter/jedi into dev
2017-04-30 02:34:38 +02:00
Dave Halter
b4039872bd
Replace Scope.subscopes with iter_funcdefs and iter_classdefs.
2017-04-30 01:36:17 +02:00
Simon Ruggier
338ea42ed9
docstrings: fix "Sphinx param with type" pattern ( #807 )
...
* docstrings: fix "Sphinx param with type" pattern
Previously, the pattern only matched if the parameter description
followed on the same line, like so:
:param type foo: A param named foo.
However, it's also valid for the parameter description to be wrapped
onto the next line, like so:
:param type foo:
A param named foo.
This change updates the pattern to match the second example as well, and
adds a test to verify this behaviour.
Fixes #806 .
* Add Simon Ruggier to the AUTHORS file
2017-04-27 20:05:48 +02:00
Dave Halter
c124fc91ca
Remove further clean_scope_docstring usages.
2017-04-26 09:52:18 +02:00
Dave Halter
f136745a8a
follow_param -> infer_param.
2017-04-20 18:09:00 +02:00
Dave Halter
ea1905f121
Refactor the docstring input.
2017-04-20 18:06:40 +02:00
Dave Halter
fbde21166b
find_return_types -> infer_return_types.
2017-04-20 09:56:16 +02:00
Dave Halter
b4631d6dd4
Progress in removing the docstring/call signature logic from the parser.
2017-04-18 18:48:05 +02:00
Dave Halter
d6d25db9a2
Remove __str__ from name.
2017-04-12 23:06:11 +02:00
Dave Halter
6190a65f23
The Lambda type should be lambdef, not lambda. Use the grammar types.
2017-04-11 18:28:25 +02:00
Dave Halter
5cd26615e8
Removed the name attribute from lambda. It doesn't exist so don't fake it.
2017-04-11 18:10:35 +02:00
Dave Halter
448bfd0992
Move the python parser tree.
2017-03-16 17:20:32 +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
Dave Halter
e7fcc21863
Remove both MergedNodes and AlreadyEvaluated, they are unused.
2017-01-23 20:36:26 +01:00
Dave Halter
d85ceb9222
More cleanups in the parser.
2017-01-23 20:10:02 +01:00
Dave Halter
641ecedcd2
Improve a few anonymous function execution context goto issues.
2016-12-04 22:35:23 +01:00
Dave Halter
dfc06dfe83
A lot of small bug fixes.
2016-12-02 15:08:54 +01:00
Dave Halter
65d3e29146
dostring fixes.
2016-11-13 20:23:17 +01:00
Dave Halter
64b6396d19
Fix one array usage.
2016-10-24 09:58:40 +02:00
Dave Halter
7667cba17e
Remove old indent/dedent usages. Now they are not needed anymore.
2016-09-11 13:20:24 +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
2b4b5f069b
Docstring should also be evaluated in class definitions. Fixes #631 .
2016-07-30 14:18:20 +02: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
498e24df94
Fix an issue with combined reversed and yield without for loops.
2015-11-10 09:37:07 +01:00
Dave Halter
b27be47811
Make exact lookups possible in docstrings.
2015-10-14 12:10:48 +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
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
5d54922c4b
Docstring change, to make non ExprStmt statements possible.
2015-03-05 01:37:47 +01:00
Dave Halter
cdbe26786a
Trying to get ird of the weird param generation in the parser tree.
2015-02-10 15:49:26 +01:00
Dave Halter
95b518e9fc
Use the Python 3.4 parser for docstring types.
...
We had to switch, because Ellipsis was otherwise not parseable.
2015-01-13 13:17:21 +01:00
Dave Halter
1725abb1fd
Fix issues with docstrings.
2014-12-03 20:30:03 +01:00
Dave Halter
52d4aaebbe
small fix for docstring parsing.
2014-11-25 15:10:19 +01:00
Dave Halter
9f45f18ad1
Added a grammar param to the parser.
2014-11-24 01:10:39 +01:00