Sha256: 1f85733ec1e47181e49588ed20ebce342e0a5fc54d09dbede45dd60ac8684db8

Contents?: true

Size: 685 Bytes

Versions: 18

Compression:

Stored size: 685 Bytes

Contents

module RBS
  module Prototype
    module Helpers
      type node = RubyVM::AbstractSyntaxTree::Node

      def block_from_body: (node) -> Types::Block?

      def each_node: (Array[untyped] nodes) { (node) -> void } -> void

      def each_child: (node) { (node child) -> void } -> void

      def any_node?: (node, ?nodes: Array[node]) { (node) -> bool } -> Array[node]?

      def keyword_hash?: (node) -> bool

      # Returns a symbol if the node is a symbol literal node
      # 
      def symbol_literal_node?: (node) -> Symbol?

      def args_from_node: (node?) -> Array[untyped]

      def untyped: () -> Types::Bases::Any

      @untyped: Types::Bases::Any
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rbs-3.8.1 sig/prototype/helpers.rbs
rbs-3.8.0 sig/prototype/helpers.rbs
rbs-3.8.0.pre.1 sig/prototype/helpers.rbs
rbs-3.7.0.pre.1 sig/prototype/helpers.rbs
rbs-3.7.0.dev.1 sig/prototype/helpers.rbs
rbs-3.6.1 sig/prototype/helpers.rbs
rbs-3.6.0 sig/prototype/helpers.rbs
rbs-3.6.0.pre.3 sig/prototype/helpers.rbs
rbs-3.6.0.pre.2 sig/prototype/helpers.rbs
rbs-3.6.0.pre.1 sig/prototype/helpers.rbs
rbs-3.6.0.dev.1 sig/prototype/helpers.rbs
rbs-3.5.3 sig/prototype/helpers.rbs
rbs-3.5.2 sig/prototype/helpers.rbs
rbs-3.5.1 sig/prototype/helpers.rbs
rbs-3.5.1.pre.1 sig/prototype/helpers.rbs
rbs-3.5.0 sig/prototype/helpers.rbs
rbs-3.5.0.pre.2 sig/prototype/helpers.rbs
rbs-3.5.0.pre.1 sig/prototype/helpers.rbs