Sha256: 0b776787fa13daa87e92d6cf27aa30b4b4df99665598105c165a777e8a4e878c

Contents?: true

Size: 618 Bytes

Versions: 58

Compression:

Stored size: 618 Bytes

Contents

module RBS
  class TypeNameResolver
    type context = Array[Namespace]

    class Query
      attr_reader type_name: TypeName
      attr_reader context: Array[Namespace]

      def initialize: (type_name: TypeName, context: context) -> void
    end

    attr_reader all_names: Set[TypeName]

    attr_reader cache: Hash[Query, TypeName?]

    def self.from_env: (Environment) -> TypeNameResolver

    def add_names: (Array[TypeName]) -> self

    def resolve: (TypeName, context: context) -> TypeName?

    def has_name?: (TypeName) -> TypeName?

    def try_cache: (Query) { () -> TypeName? } -> TypeName?
  end
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/rbs-2.8.4/sig/type_name_resolver.rbs
rbs-2.8.4 sig/type_name_resolver.rbs
rbs-2.8.3 sig/type_name_resolver.rbs
rbs-3.0.0.dev.1 sig/type_name_resolver.rbs
rbs-2.8.2 sig/type_name_resolver.rbs
rbs-2.8.1 sig/type_name_resolver.rbs
rbs-2.8.0 sig/type_name_resolver.rbs
rbs-2.8.0.pre.1 sig/type_name_resolver.rbs
rbs-2.7.0 sig/type_name_resolver.rbs
rbs-2.7.0.pre.3 sig/type_name_resolver.rbs
rbs-2.7.0.pre.2 sig/type_name_resolver.rbs
rbs-2.7.0.pre.1 sig/type_name_resolver.rbs
rbs-2.6.0 sig/type_name_resolver.rbs
rbs-2.5.1 sig/type_name_resolver.rbs
rbs-2.5.0 sig/type_name_resolver.rbs
rbs-2.4.0 sig/type_name_resolver.rbs
rbs-2.3.2 sig/type_name_resolver.rbs
rbs-2.3.1 sig/type_name_resolver.rbs
rbs-2.3.0 sig/type_name_resolver.rbs
rbs-2.2.2 sig/type_name_resolver.rbs