Sha256: 3196eb0f3adc8113f5b3c9cd354826b1d87d9a087642cc1b97f17e919944806a

Contents?: true

Size: 941 Bytes

Versions: 24

Compression:

Stored size: 941 Bytes

Contents

module Steep
  module Server
    module ChangeBuffer : _WithProject
      interface _WithProject
        def project: () -> Project
      end

      type changes = Hash[Pathname, Array[Services::ContentChange]]

      attr_reader mutex: Thread::Mutex

      attr_reader buffered_changes: changes

      # Yields `buffered_changes` to modify with synchronization
      #
      def push_buffer: [A] () { (changes) -> A } -> A

      # Yields or returns a copy of `buffered_changes` after clearing `buffered_changes` content
      #
      def pop_buffer: [A] () { (changes) -> A } -> A
                    | () -> changes

      # Load files from `project` to `buffered_changes`
      #
      def load_files: (project: Project, commandline_args: Array[String]) -> void

      # Load changes from a request with `DidChangeTextDocumentParams` into `buffered_changes`
      #
      def collect_changes: (untyped request) -> void
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
steep-1.5.3 sig/steep/server/change_buffer.rbs
steep-1.5.2 sig/steep/server/change_buffer.rbs
steep-1.5.1 sig/steep/server/change_buffer.rbs
steep-1.5.0 sig/steep/server/change_buffer.rbs
steep-1.5.0.pre.6 sig/steep/server/change_buffer.rbs
steep-1.5.0.pre.5 sig/steep/server/change_buffer.rbs
steep-1.5.0.pre.4 sig/steep/server/change_buffer.rbs
steep-1.5.0.pre.3 sig/steep/server/change_buffer.rbs
steep-1.5.0.pre.2 sig/steep/server/change_buffer.rbs
steep-1.5.0.pre.1 sig/steep/server/change_buffer.rbs
steep-1.4.0 sig/steep/server/change_buffer.rbs
steep-1.4.0.dev.5 sig/steep/server/change_buffer.rbs
steep-1.4.0.dev.4 sig/steep/server/change_buffer.rbs
steep-1.4.0.dev.3 sig/steep/server/change_buffer.rbs
steep-1.3.2 sig/steep/server/change_buffer.rbs
steep-1.3.1 sig/steep/server/change_buffer.rbs
steep-1.4.0.dev.2 sig/steep/server/change_buffer.rbs
steep-1.4.0.dev.1 sig/steep/server/change_buffer.rbs
steep-1.3.0 sig/steep/server/change_buffer.rbs
steep-1.3.0.pre.2 sig/steep/server/change_buffer.rbs