Sha256: 0d93d80a123446c8833e24a0537dd33c8b3b2a4a4e2f5e0121a20a56f0d09780

Contents?: true

Size: 610 Bytes

Versions: 40

Compression:

Stored size: 610 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module RubyLsp
  module ResponseBuilders
    class SignatureHelp < ResponseBuilder
      ResponseType = type_member { { fixed: T.nilable(Interface::SignatureHelp) } }

      extend T::Sig

      sig { void }
      def initialize
        super
        @signature_help = T.let(nil, ResponseType)
      end

      sig { params(signature_help: ResponseType).void }
      def replace(signature_help)
        @signature_help = signature_help
      end

      sig { override.returns(ResponseType) }
      def response
        @signature_help
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
ruby-lsp-0.17.4 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.3 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.2 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.1 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.0 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.6 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.5 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.4 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.3 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.2 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.1 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.16.0 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.15.0 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.6 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.5 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.4 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.3 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.2 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.1 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.14.0 lib/ruby_lsp/response_builders/signature_help.rb