Sha256: 3c399eb4f490082d6b05ca27f2bcf291d84906f7bdc6d298d14ad8a37a2c6924

Contents?: true

Size: 829 Bytes

Versions: 26

Compression:

Stored size: 829 Bytes

Contents

module Steep
  module AST
    module Types
      class Union
        attr_reader types: Array[t]

        attr_reader location: untyped

        def initialize: (types: Array[t], ?location: untyped) -> void

        def self.build: (types: Array[t], ?location: untyped) -> t

        def ==: (untyped other) -> bool

        @hash: Integer
        def hash: () -> Integer

        alias eql? ==

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

        def to_s: () -> ::String

        @fvs: Set[variable]
        def free_variables: () -> Set[variable]

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

        include Helper::ChildrenLevel

        def level: () -> Array[Integer]

        def with_location: (untyped new_location) -> Union
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
steep-1.7.0.dev.2 sig/steep/ast/types/union.rbs
steep-1.7.0.dev.1 sig/steep/ast/types/union.rbs
steep-1.6.0 sig/steep/ast/types/union.rbs
steep-1.6.0.pre.4 sig/steep/ast/types/union.rbs
steep-1.6.0.pre.3 sig/steep/ast/types/union.rbs
steep-1.6.0.pre.2 sig/steep/ast/types/union.rbs
steep-1.6.0.pre.1 sig/steep/ast/types/union.rbs
steep-1.5.3 sig/steep/ast/types/union.rbs
steep-1.5.2 sig/steep/ast/types/union.rbs
steep-1.5.1 sig/steep/ast/types/union.rbs
steep-1.5.0 sig/steep/ast/types/union.rbs
steep-1.5.0.pre.6 sig/steep/ast/types/union.rbs
steep-1.5.0.pre.5 sig/steep/ast/types/union.rbs
steep-1.5.0.pre.4 sig/steep/ast/types/union.rbs
steep-1.5.0.pre.3 sig/steep/ast/types/union.rbs
steep-1.5.0.pre.2 sig/steep/ast/types/union.rbs
steep-1.5.0.pre.1 sig/steep/ast/types/union.rbs
steep-1.4.0 sig/steep/ast/types/union.rbs
steep-1.4.0.dev.5 sig/steep/ast/types/union.rbs
steep-1.4.0.dev.4 sig/steep/ast/types/union.rbs