forked from VimPlug/jedi
Hide api_classes.defined_names
This commit is contained in:
@@ -507,7 +507,7 @@ def defined_names(source, source_path=None, source_encoding='utf-8'):
|
|||||||
modules.source_to_unicode(source, source_encoding),
|
modules.source_to_unicode(source, source_encoding),
|
||||||
module_path=source_path,
|
module_path=source_path,
|
||||||
)
|
)
|
||||||
return api_classes.defined_names(parser.scope)
|
return api_classes._defined_names(parser.scope)
|
||||||
|
|
||||||
|
|
||||||
def set_debug_function(func_cb=debug.print_to_stdout, warnings=True,
|
def set_debug_function(func_cb=debug.print_to_stdout, warnings=True,
|
||||||
|
|||||||
@@ -365,10 +365,10 @@ class Definition(BaseDefinition):
|
|||||||
d = d.var
|
d = d.var
|
||||||
if isinstance(d, pr.Name):
|
if isinstance(d, pr.Name):
|
||||||
d = d.parent
|
d = d.parent
|
||||||
return defined_names(d)
|
return _defined_names(d)
|
||||||
|
|
||||||
|
|
||||||
def defined_names(scope):
|
def _defined_names(scope):
|
||||||
"""
|
"""
|
||||||
List sub-definitions (e.g., methods in class).
|
List sub-definitions (e.g., methods in class).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user