Sha256: 1d0a4fc1808ab7d549436347f18714fdf909d0e7b6b0ac2dca2f33f56c5aa059

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 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
      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.4.0 sig/shims/parser.rbs
steep-1.4.0.dev.5 sig/shims/parser.rbs
steep-1.4.0.dev.4 sig/shims/parser.rbs