Sha256: 4beda7ca4309c44651150ceb6f9226c8ba65163ce7afcffa20b007b88720ad5a

Contents?: true

Size: 1 KB

Versions: 7

Compression:

Stored size: 1 KB

Contents

module Parser
  module AST
    class Node
      attr_reader type: Symbol

      attr_reader children: Array[untyped]

      def initialize: (Symbol `type`, ?Array[untyped] children, ?Hash[Symbol, untyped] properties) -> void

      def updated: (?Symbol?, ?Array[untyped]?, ?Hash[Symbol, untyped]? properties) -> Node

      attr_reader location: Source::Map

      alias loc location
    end
  end

  class Ruby31
    def initialize: (untyped builder) -> void

    def parse: (Source::Buffer) -> AST

    def parse_with_comments: (Source::Buffer) -> [AST::Node, Array[Source::Comment]]

    attr_reader diagnostics: untyped
  end

  module Source
    class Buffer
      def initialize: (String file, Integer lineno, source: String) -> void
    end
  end

  module Builders
    class Default
      attr_accessor self.emit_lambda: bool
      attr_accessor self.emit_procarg0: bool
      attr_accessor self.emit_kwargs: bool

      def string_value: (untyped) -> untyped

      def value: (untyped) -> untyped
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
steep-1.3.2 sig/shims/parser.rbs
steep-1.3.1 sig/shims/parser.rbs
steep-1.4.0.dev.2 sig/shims/parser.rbs
steep-1.4.0.dev.1 sig/shims/parser.rbs
steep-1.3.0 sig/shims/parser.rbs
steep-1.3.0.pre.2 sig/shims/parser.rbs
steep-1.3.0.pre.1 sig/shims/parser.rbs