Sha256: 1930af243893da53b804db829981e07ddffd7a51ff05d7e6368080de25297590

Contents?: true

Size: 887 Bytes

Versions: 1

Compression:

Stored size: 887 Bytes

Contents

module Steep
  module AST
    module Types
      class Intersection
        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]

        include Helper::ChildrenLevel

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

        def map_type: () { (t) -> t } -> t

        def level: () -> Array[Integer]

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/steep/ast/types/intersection.rbs