Sha256: 9d49ba024ab15cc48ba4e9ba9ab70e24b24e5a465ab4fe6b187f6612a320e130

Contents?: true

Size: 379 Bytes

Versions: 32

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true
# typed: true

class T::Private::DeclState
  def self.current
    Thread.current[:opus_types__decl_state] ||= self.new
  end

  def self.current=(other)
    Thread.current[:opus_types__decl_state] = other
  end

  attr_accessor :active_declaration
  attr_accessor :skip_next_on_method_added

  def reset!
    self.active_declaration = nil
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
sorbet-runtime-0.4.4488 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4487 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4486 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4485 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4484 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4483 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4482 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4481 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4477 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4476 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4475 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4472 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4471 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4469 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4468 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4467 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4466 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4465 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4463 lib/types/private/decl_state.rb
sorbet-runtime-0.4.4462 lib/types/private/decl_state.rb