class Solargraph::Pin::BaseMethod

def see_reference api_map

Returns:
  • (ComplexType, nil) -

Parameters:
  • api_map (ApiMap) --
def see_reference api_map
  docstring.ref_tags.each do |ref|
    next unless ref.tag_name == 'return' && ref.owner
    result = resolve_reference(ref.owner.to_s, api_map)
    return result unless result.nil?
  end
  match = comments.match(/^[ \t]*\(see (.*)\)/m)
  return nil if match.nil?
  resolve_reference match[1], api_map
end