Sha256: 5cadb45123e7edfdd368d5e295019f3c82518994330f193835c776cb479ae265

Contents?: true

Size: 599 Bytes

Versions: 14

Compression:

Stored size: 599 Bytes

Contents

module RBS
  class TypeNameResolver
    class Query
      attr_reader type_name: TypeName
      attr_reader context: Array[Namespace]

      def initialize: (type_name: TypeName, context: Array[Namespace]) -> 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: Array[Namespace]) -> TypeName?

    def has_name?: (TypeName) -> TypeName?

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rbs-0.20.1 sig/type_name_resolver.rbs
rbs-0.20.0 sig/type_name_resolver.rbs
rbs-0.19.0 sig/type_name_resolver.rbs
rbs-0.18.1 sig/type_name_resolver.rbs
rbs-0.18.0 sig/type_name_resolver.rbs
rbs-0.17.0 sig/type_name_resolver.rbs
rbs-0.16.0 sig/type_name_resolver.rbs
rbs-0.15.0 sig/type_name_resolver.rbs
rbs-0.14.0 sig/type_name_resolver.rbs
rbs-0.13.1 sig/type_name_resolver.rbs
rbs-0.13.0 sig/type_name_resolver.rbs
rbs-0.12.2 sig/type_name_resolver.rbs
rbs-0.12.1 sig/type_name_resolver.rbs
rbs-0.12.0 sig/type_name_resolver.rbs