lib/solargraph/yard_map/cache.rb



# frozen_string_literal: true


module Solargraph
  class YardMap
    class Cache
      def initialize
        # @type [Hash{String => Array<Solargraph::Pin::Base>}]

        @path_pins = {}
      end

      # @param path [String]

      # @param pins [Array<Solargraph::Pin::Base>]

      # @return [Array<Solargraph::Pin::Base>]

      def set_path_pins path, pins
        @path_pins[path] = pins
      end

      # @param path [String]

      # @return [Array<Solargraph::Pin::Base>]

      def get_path_pins path
        @path_pins[path]
      end
    end
  end
end