class_docstr: *Definition* objects are returned from :meth:`api.Script.goto_assignments`
  or :meth:`api.Script.goto_definitions`.
class_docstr_tok: ["*","Definition","*","objects","are","returned","from",":","meth",":","`","api.Script.goto_assignments","`","or",":","meth",":","`","api.Script.goto_definitions","`","."]
docstr: List sub-definitions (e.g., methods in class).
  
  :rtype: list of Definition
docstr_tok: ["List","sub-definitions","(","e.g.",",","methods","in","class",")",".",":","rtype",":","list","of","Definition"]
code: def defined_names(self):
      """
      List sub-definitions (e.g., methods in class).
  
      :rtype: list of Definition
      """
      defs = self._name.infer()
      return sorted(
          unite(defined_names(self._evaluator, d) for d in defs),
          key=lambda s: s._name.start_pos or (0, 0),
      )
  
imports: import re
  from parso.python.tree import search_ancestor
  from jedi import settings
  from jedi.evaluate.utils import ignored, unite
  from jedi.cache import memoize_method
  from jedi.evaluate import imports
  from jedi.evaluate import compiled
  from jedi.evaluate.imports import ImportName
  from jedi.evaluate.context import instance
  from jedi.evaluate.context import ClassContext, FunctionExecutionContext
  from jedi.api.keywords import KeywordName
label_desc: Use image node_id 4 for calling the Definition obj's underlying member method code with example usage: obj.defined_names() and returns: sorted