Sha256: c607ac5f92e0b57b30c4e4e479142abeb2e3cdb0696906a3ef86515083293645

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class ReferenceParams < TextDocumentPositionParams
        def initialize(text_document:, position:, context:)
          @attributes = {}

          @attributes[:context] = context

          @attributes.freeze
        end

        # @return [ReferenceContext]
        def context
          attributes.fetch(:context)
        end

        attr_reader :attributes

        def to_json(*args)
          attributes.to_json(*args)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/reference_params.rb