Sha256: b74505d69307d9073e79e846eacd2ae1346e4e314433edd4ff2c06063cff4476

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

module Steep
  module AST
    module Types
      class Proc
        attr_reader location: untyped

        attr_reader type: Interface::Function

        attr_reader self_type: AST::Types::t?

        attr_reader block: Interface::Block?

        def initialize: (type: Interface::Function, self_type: AST::Types::t?, block: Interface::Block?, ?location: untyped) -> void

        def ==: (untyped other) -> bool

        def hash: () -> Integer

        alias eql? ==

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

        def to_s: () -> ::String

        def free_variables: () -> Set[Symbol]

        include Helper::ChildrenLevel

        def level: () -> Array[Integer]

        def closed?: () -> bool

        def with_location: (untyped new_location) -> Proc

        def map_type: () { (AST::Types::t) -> AST::Types::t } -> Proc

        def one_arg?: () -> bool

        def back_type: () -> AST::Types::t

        def block_required?: () -> bool

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
steep-1.3.0.pre.2 sig/steep/ast/types/proc.rbs
steep-1.3.0.pre.1 sig/steep/ast/types/proc.rbs
steep-1.2.1 sig/steep/ast/types/proc.rbs
steep-1.2.0 sig/steep/ast/types/proc.rbs
steep-1.2.0.pre.1 sig/steep/ast/types/proc.rbs