Sha256: 9639b288d5fe22be10441af17d9d742e1d3f2d6e9d9922369f8fe32debc48f3a

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class ReferenceContext
        def initialize(include_declaration:)
          @attributes = {}

          @attributes[:includeDeclaration] = include_declaration

          @attributes.freeze
        end

        #
        # Include the declaration of the current symbol.
        #
        # @return [boolean]
        def include_declaration
          attributes.fetch(:includeDeclaration)
        end

        attr_reader :attributes

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/reference_context.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/reference_context.rb