original_docstring: This function calculates the cache key.
docstring: This function calculates the cache key.
docstring_tokens: This function calculates the cache key .
code: def cache_call_signatures(evaluator, context, bracket_leaf, code_lines, user_pos):
      """This function calculates the cache key."""
      line_index = user_pos[0] - 1
  
      before_cursor = code_lines[line_index][:user_pos[1]]
      other_lines = code_lines[bracket_leaf.start_pos[0]:line_index]
      whole = ''.join(other_lines + [before_cursor])
      before_bracket = re.match(r'.*\(', whole, re.DOTALL)
  
      module_path = context.get_root_context().py__file__()
      if module_path is None:
          yield None  # Don't cache!
      else:
          yield (module_path, before_bracket, bracket_leaf.start_pos)
      yield evaluate_goto_definition(
          evaluator,
          context,
          bracket_leaf.get_previous_leaf()
      )
code_tokens: def cache_call_signatures ( evaluator , context , bracket_leaf , code_lines , user_pos ) : line_index = user_pos [ 0 ] - 1 before_cursor = code_lines [ line_index ] [ : user_pos [ 1 ] ] other_lines = code_lines [ bracket_leaf . start_pos [ 0 ] : line_index ] whole = '' . join ( other_lines + [ before_cursor ] ) before_bracket = re . match ( r'.*\(' , whole , re . DOTALL ) module_path = context . get_root_context ( ) . py__file__ ( ) if module_path is None : yield None else : yield ( module_path , before_bracket , bracket_leaf . start_pos ) yield evaluate_goto_definition ( evaluator , context , bracket_leaf . get_previous_leaf ( ) )
short_docstring: This function calculates the cache key.
short_docstring_tokens: This function calculates the cache key .
comment: """This function calculates the cache key."""$SEP$# Don't cache!