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.19.1 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.19.0 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.18.4 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.18.3 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.18.2 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.18.1 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.18.0 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.17 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.16 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.15 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.14 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.13 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.12 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.11 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.10 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.9 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.8 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.7 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.6 lib/ruby_lsp/response_builders/signature_help.rb
ruby-lsp-0.17.5 lib/ruby_lsp/response_builders/signature_help.rb