Sha256: d777a9756f77b6581749c13f96056a07aa0eb8f101498823bc7665ad3aaecea8

Contents?: true

Size: 636 Bytes

Versions: 6

Compression:

Stored size: 636 Bytes

Contents

# typed: true

module Packwerk
  class Reference
    sig do
      params(
        package: Package,
        relative_path: String,
        constant: ConstantContext,
        source_location: T.nilable(Node::Location),
      ).void
    end
    def initialize(
      package:,
      relative_path:,
      constant:,
      source_location:
    )
    end

    sig { returns(Package) }
    attr_reader(:package)

    sig { returns(T.nilable(String)) }
    attr_reader(:relative_path)

    sig { returns(ConstantContext) }
    attr_reader(:constant)

    sig { returns(T.nilable(Node::Location)) }
    attr_reader(:source_location)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
packwerk-3.2.2 sorbet/rbi/shims/packwerk/reference.rbi
packwerk-3.2.1 sorbet/rbi/shims/packwerk/reference.rbi
packwerk-3.2.0 sorbet/rbi/shims/packwerk/reference.rbi
packwerk-3.1.0 sorbet/rbi/shims/packwerk/reference.rbi
packwerk-3.0.1 sorbet/rbi/shims/packwerk/reference.rbi
packwerk-3.0.0 sorbet/rbi/shims/packwerk/reference.rbi