David Halter
7c8fee1257
removed a lot of the goto usages, used goto_assignments instead. Did the same also for a lot of definition uses
2013-05-03 21:26:29 +04:30
David Halter
edd0a08351
api_classes.RelatedName -> Usage
2013-05-03 21:06:56 +04:30
David Halter
efeeee9706
removed related_names occurences in favor of usages
2013-05-03 21:04:36 +04:30
David Halter
49e51f5a1a
deprecated api_classes.Completion.word in favor of name
2013-05-03 20:38:37 +04:30
David Halter
beae920177
Script.complete has been deprecated, therefore changed all usages / documatation to Script.completions
2013-05-03 20:28:11 +04:30
David Halter
c912428f78
deprecation process for a nice api design (as discussed in #124 )
...
deprecate:
- definition
- goto
- complete
- related_names
- function_definition
in favor of:
- goto_definitions
- goto_assignments
- completions
- usages
- call_signatures
Thank you @dbrgn and @tkf for the fruitful discussion!
2013-05-03 20:15:36 +04:30
David Halter
88e60b85e0
best patch in a long time, deleted all the part_parser stuff which was necessary for fast function_definitions, but with the new parser Jedi's fast enough -> fixes #136
2013-05-03 19:33:24 +04:30
Danilo Bargen
86d775324b
Fix most flake8 issues ( fixes #205 )
2013-04-27 15:40:36 +02:00
David Halter
09f39d891a
remove __all__ from api, because not needed, fixes #180
2013-03-18 08:25:14 +04:30
David Halter
cd513590ab
Merge pull request #176 from tkf/basedefinition-type
...
More detailed BaseDefinition.type (fixes #169 )
2013-03-15 10:36:53 -07:00
Takafumi Arakaki
df08122639
Fix a failure when run with Python 3
2013-03-15 14:51:59 +01:00
David Halter
7b6a4c9a2b
some corrections of imports
2013-03-15 16:01:23 +04:30
David Halter
9ad9c806bb
rename non-cycling imports to 'from jedi import ..'
2013-03-15 15:02:33 +04:30
Takafumi Arakaki
7cf70a3f0a
Do not clear cache in __del__
...
Prior to this change, running
`py.test --assert=rewrite test/test_integration.py` fails with errors
due to:
```py
cls = <class 'jedi.recursion.ExecutionRecursionDecorator'>
@classmethod
def cleanup(cls):
> cls.parent_execution_funcs.pop()
E IndexError: pop from empty list
recursion.py:127: IndexError
```
Similar errors occurred in travis occasionally:
- https://travis-ci.org/davidhalter/jedi/jobs/5449831
- https://travis-ci.org/davidhalter/jedi/jobs/5512538
I think this is because GC calls __del__ at random point during
actual execution of ExecutionRecursionDecorator.__call__.
As --assert=rewrite works by AST dynamically, I guess that it
is harder for Python's GC to clean up code and therefore GC
happens sometime later. Although this is just a random guess,
as `tox -- --assert=rewrite` works with this patch now, I think
this is a good change.
2013-03-15 00:21:46 +01:00
Takafumi Arakaki
dccda224ab
Hide api_classes.defined_names
2013-03-13 22:18:50 +01:00
Takafumi Arakaki
0e99c33c67
Don't use NotFoundError in _func_call_and_param_index
...
This makes it simpler.
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
7ce0e1c178
Rename it to _func_call_and_param_index
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
d9b3bb4016
Refactor _get_function_call_and_param_index_at_point
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
9490730d59
Treat case like f()
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
a25aa884d6
Make Script.definition work inside function call
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
0a09d8a813
Refactor function_definition
2013-03-10 21:27:34 +01:00
Takafumi Arakaki
a02940f3c1
Rename api.get_definitions to defined_names
...
Do the same for Definition.get_definitions also.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki
39feecee04
Add new API: jedi.api.get_definitions
2013-03-10 20:40:14 +01:00
Takafumi Arakaki
9ba9e2c3a6
Make doctest work on Python 2.5
2013-02-26 10:58:24 +01:00
Takafumi Arakaki
95a98c9033
Do not use >>> for non-doctest code example
...
Use literal block instead.
2013-02-26 10:36:08 +01:00
David Halter
b0c3fd5439
api.Script.get_definition -> definition, to be consistent in the api naming. deprecated api.Script.get_definition
2013-02-21 22:12:51 +04:30
David Halter
f8e0c78f77
Script.get_in_function_call -> Script.function_definition
2013-02-21 22:05:39 +04:30
David Halter
f2cdf03e6e
fixed dict problems
2013-02-20 22:44:02 +04:30
David Halter
06a54f30a8
some renaming fixes
2013-02-19 00:32:47 +04:30
David Halter
1b7fc1ee50
fixes for goto
2013-02-19 00:21:04 +04:30
David Halter
c3fe5d04dd
line_offset to offset in Parser, which is important for exact positioning
2013-02-18 23:17:41 +04:30
David Halter
52b32a01c1
move default arguments [] to (), because mutable may be dangerous (especially in a recursive environment
2013-02-11 01:21:51 +01:00
David Halter
5722cd2382
fix parts of helpers.search_function_definition
2013-02-10 22:40:28 +01:00
David Halter
70f07320aa
Statement.get_assignment_details -> get_commands (makes more sense)
2013-02-08 16:19:05 +01:00
David Halter
6c0a0e889c
fix start_pos of multiple elements
2013-02-08 15:14:43 +01:00
David Halter
650b96dbda
improve docstrings of evaluate
2013-02-05 18:21:38 +01:00
David Halter
1474dcb91c
other modules also adapt to the new evaluate_representation now
2013-02-05 17:09:57 +01:00
David Halter
b3a0249475
fix the remaining refactoring problems
2013-02-05 16:38:39 +01:00
David Halter
bc08ea9630
renamed all occurences of parsing
2013-02-05 16:29:39 +01:00
David Halter
95c5b9a5e3
parsing.PyFuzzyParser -> Parser
2013-02-04 16:18:24 +01:00
David Halter
6d733f124d
remove old unused function
2013-01-15 00:18:59 +01:00
David Halter
f3f7eacae3
fix a little problem with import keyword autocompletion
2013-01-14 22:35:32 +01:00
David Halter
35e55fab25
improved import statement keyword autocompletion, #111
2013-01-14 22:32:34 +01:00
David Halter
c16c66d895
improve debugging speed messages
2013-01-12 00:49:54 +01:00
David Halter
2efb93273a
merged module_cache into parser_cache
2013-01-11 23:19:22 +01:00
David Halter
1017db903c
basic pickle implementation #102
2013-01-11 22:00:03 +01:00
David Halter
8987ecf3a8
forgot some fragments of CachedModule.cache
2013-01-08 12:53:02 +01:00
David Halter
de45c277c1
broke the api again (unintentionally)
2013-01-07 20:55:05 +01:00
David Halter
f192259383
use absolute paths as the default for 'Script'
2013-01-07 14:29:34 +01:00
David Halter
082db3fdbd
scan_array_for_pos -> search_function_call, which makes much more sense
2013-01-07 14:11:45 +01:00