1
0
forked from VimPlug/jedi
Commit Graph

63 Commits

Author SHA1 Message Date
Takafumi Arakaki 871ce5ad33 Compatibility fix for Python 2.5 2013-03-10 20:44:15 +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 36f03f4b0d Use the first item returned by get_names_of_scope 2013-03-10 20:40:52 +01:00
Takafumi Arakaki 06de4d66e7 Revert "Add get_names_of_scope option to evaluate.get_names_of_scope"
This reverts commit 154662ea273a17f00186546bdf9d75833553d307.
2013-03-10 20:40:52 +01:00
Takafumi Arakaki d4bf14dd66 Use list comprehension instead of map 2013-03-10 20:40:52 +01:00
Takafumi Arakaki 5a29fecfb2 Fix Python 3 syntax error 2013-03-10 20:40:52 +01:00
Takafumi Arakaki 87714460a2 Add get_names_of_scope option to evaluate.get_names_of_scope
Previously failing test passes now.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki 3fbe7e9ff4 Rewrite get_definitions using evaluate.get_names_of_scope
- Definition.names is changed to Definition.name.
- TestGetDefinitions.test_nested_definitions fails.
2013-03-10 20:40:14 +01:00
Takafumi Arakaki 1eccf2f765 Make sure get_definitions returns list in Python 3 2013-03-10 20:40:14 +01:00
Takafumi Arakaki 08f45d1f95 Fix Definition.get_definitions 2013-03-10 20:40:14 +01:00
Takafumi Arakaki 0f67b3e0c2 More robust Definition.names 2013-03-10 20:40:14 +01:00
Takafumi Arakaki d0ad14adf4 Fix Definition.names for star import 2013-03-10 20:40:14 +01:00
Takafumi Arakaki cbcaa85108 Add :attr:Definition.names 2013-03-10 20:40:14 +01:00
Takafumi Arakaki 39feecee04 Add new API: jedi.api.get_definitions 2013-03-10 20:40:14 +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 6ea64a28bf dev/refactor merge 2013-02-23 20:53:57 +04:30
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
Takafumi Arakaki 7f9eb272c4 Add '_sqlite3' to BaseDefinition._mapping 2013-02-09 01:32:53 +01:00
Takafumi Arakaki 44097bac22 Add 'posix' to BaseDefinition._mapping
Needed for "os.fsync", for example.
2013-02-09 01:32:43 +01:00
Takafumi Arakaki ef30642f25 Add '_functools' to BaseDefinition._mapping
Needed for "functools.partial"
2013-02-09 01:30:30 +01:00
David Halter 69137a48f0 pep8 2013-02-06 13:04:27 +01:00
David Halter 56d900b7e2 moved recursion parts from helper to recursion.py 2013-02-05 23:41:54 +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 bc08ea9630 renamed all occurences of parsing 2013-02-05 16:29:39 +01:00
David Halter 9f9bbaae56 no str cast on None for module paths 2013-01-04 20:16:13 +01:00
Danilo Bargen a4e1fe47fd Improved plugin api documentation 2013-01-02 20:10:59 +01:00
David Halter 71b50bdbd7 return None on keywords for BaseDefinition.full_name, fixes #94 2012-12-30 10:49:18 +01:00
David Halter 01220e047e sphinx api_classes description 2012-12-29 20:44:07 +01:00
David Halter 1700b37f64 same_name_completions -> _same_name_completions, #97 2012-12-29 20:20:26 +01:00
David Halter 406233b62d ignore duplicates of completion outputs, #97 2012-12-29 01:59:34 +01:00
Danilo Bargen 59ff88ab57 Proper sphinx deprecation warning 2012-12-27 18:52:56 +01:00
Takafumi Arakaki 7cbb541b78 Use warnings.warn instead of raise 2012-12-27 18:32:03 +01:00
David Halter 5e03147f43 tried to link the DeprecationWarning in Sphinx 2012-12-27 18:16:37 +01:00
David Halter f8efc7c950 changed warnings to sphinx doc style 2012-12-27 18:15:11 +01:00
David Halter 22fcfe5e19 deprecated BaseDefinition.line_nr in favor of 'line'. thx @dbrgn for the hint. 2012-12-27 18:12:18 +01:00
Danilo Bargen 5170919458 Extended documentation of BaseDefinition properties. 2012-12-26 16:41:47 +01:00
Danilo Bargen 9f3bf0114e Improved API documentation 2012-12-26 14:25:59 +01:00
Danilo Bargen e0d07aff79 Started creating full documentation 2012-12-26 01:34:36 +01:00
David Halter 15510a4c3b more unicode casts instead of str casts 2012-12-19 18:46:32 +01:00
David Halter e8ddc35a1b caches have their own module now. 2012-12-12 21:28:19 +01:00
David Halter 830f50e314 fix a problem with python3 2012-12-09 19:40:30 +01:00
David Halter a012880c0c different solution for imports in davidhalter/jedi-vim#44 2012-12-09 19:10:35 +01:00
David Halter 48a45ee55b import statement doc works now -> fixes davidhalter/jedi-vim#44 2012-12-09 19:02:37 +01:00
David Halter 3008b96e44 follow_definition function for completions. fixes #54 2012-12-09 17:58:22 +01:00
David Halter 93aaff4cf4 changed code for more readability that has been used because of weakrefs 2012-12-09 16:59:32 +01:00
David Halter 6bdda36205 removed all the weakref stuff again. It didn't speed up anything, but made things much more complicated 2012-12-09 16:33:24 +01:00
Takafumi Arakaki d03f8daa52 Fix for Python 3.x: its "builtin" in 3.x 2012-12-02 20:40:18 +01:00
Takafumi Arakaki 12afb6dec8 No __builtin__ prefix for BaseOutput.full_name 2012-12-02 20:33:52 +01:00
David Halter e5b0989afe fix import formatting in description for davidhalter/jedi-vim#42 2012-11-27 13:07:06 +01:00