Sha256: a664783ee5ef1096e973671dd53ded7a65d7092fbdd908f6c921452ec21640e5

Contents?: true

Size: 806 Bytes

Versions: 7

Compression:

Stored size: 806 Bytes

Contents

module Steep
  module AST
    module Types
      class Record
        type loc = RBS::Location[untyped, untyped]

        type key = Symbol | String | Integer

        attr_reader location: loc?

        attr_reader elements: Hash[key, t]

        def initialize: (elements: Hash[key, t], ?location: loc?) -> void

        def ==: (untyped other) -> bool

        def hash: () -> Integer

        alias eql? ==

        def subst: (Interface::Substitution s) -> self

        def to_s: () -> ::String

        def free_variables: () -> Set[Symbol]

        include Helper::ChildrenLevel

        def each_child: () { (t) -> void } -> void
                      | () -> Enumerator[t, void]

        def level: () -> Integer

        def with_location: (loc new_location) -> self
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
steep-1.3.0.pre.1 sig/steep/ast/types/record.rbs
steep-1.2.1 sig/steep/ast/types/record.rbs
steep-1.2.0 sig/steep/ast/types/record.rbs
steep-1.2.0.pre.1 sig/steep/ast/types/record.rbs
steep-1.1.1 sig/steep/ast/types/record.rbs
steep-1.1.0 sig/steep/ast/types/record.rbs
steep-1.1.0.pre.1 sig/steep/ast/types/record.rbs