Sha256: 4acc6b0368220eb2245aefa257006e4ae25205c35a834eccce9f66d3bee2652c

Contents?: true

Size: 1.54 KB

Versions: 3

Compression:

Stored size: 1.54 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

  class Ruby32
    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

  class Ruby33
    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
      attr_accessor self.emit_forward_arg: bool

      def string_value: (untyped) -> untyped

      def value: (untyped) -> untyped
    end
  end

  class SyntaxError < StandardError
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
steep-1.7.0.dev.3 sig/shims/parser.rbs
steep-1.7.0.dev.2 sig/shims/parser.rbs
steep-1.7.0.dev.1 sig/shims/parser.rbs