Sha256: e93481b14ac3c6dae702bcb63db11f370bf77bc9278ef19832aaa841741ff85e

Contents?: true

Size: 812 Bytes

Versions: 7

Compression:

Stored size: 812 Bytes

Contents

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

        type loc = RBS::Location[untyped, untyped]

        attr_reader location: loc?

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

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

        def ==: (untyped other) -> bool

        def hash: () -> Integer

        alias eql? ==

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

        def to_s: () -> ::String

        def free_variables: () -> Set[Symbol]

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

        include Helper::ChildrenLevel

        def level: () -> Integer

        def with_location: (loc new_location) -> Union
      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/union.rbs
steep-1.2.1 sig/steep/ast/types/union.rbs
steep-1.2.0 sig/steep/ast/types/union.rbs
steep-1.2.0.pre.1 sig/steep/ast/types/union.rbs
steep-1.1.1 sig/steep/ast/types/union.rbs
steep-1.1.0 sig/steep/ast/types/union.rbs
steep-1.1.0.pre.1 sig/steep/ast/types/union.rbs