#NEWLINE# def defined_names( source , path = None , encoding = 'utf-8' ) : #NEWLINE# #INDENT# '\n    Get all definitions in `source` sorted by its position.\n\n    This functions can be used for listing functions, classes and\n    data defined in a file.  This can be useful if you want to list\n    them in "sidebar".  Each element in the returned list also has\n    `defined_names` method which can be used to get sub-definitions\n    (e.g., methods in class).\n\n    :rtype: list of classes.Definition\n\n    .. deprecated:: 0.9.0\n       Use :func:`names` instead.\n    .. todo:: Remove!\n    ' #NEWLINE# warnings . warn ( 'Use call_signatures instead.' , DeprecationWarning ) #NEWLINE# return names ( source , encoding , encoding )