You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: unique_type.rb
    path of file: ./repos/solargraph/lib/solargraph/complex_type
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Solargraph
  class ComplexType
    # An individual type signature. A complex type can consist of multiple
    # unique types.
    #
    class UniqueType
      include TypeMethods

      attr_reader :all_params

      # Create a
    
      def resolve_parameters definitions, context
        new_name = if name == 'param'
          idx = definitions.parameters.index(subtypes.first.name)
          return ComplexType::UNDEFINED if idx.nil?
          param_type = context.return_type.all_params[idx]
          return ComplexType::UNDEFINED unless param_type
          param_type.to_s
        else
          name
        end