HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/ruby/gems/3.0.0/gems/rbs-1.0.4/sig/parser.rbs
module RBS
  class Parser
    class SyntaxError < StandardError
      attr_reader token_str: String
      attr_reader error_value: untyped
      attr_reader value_stack: untyped?

      def initialize: (token_str: String, error_value: untyped, ?value_stack: untyped?) -> void
    end

    class SemanticsError < StandardError
      attr_reader subject: untyped
      attr_reader location: Location
      attr_reader original_message: String

      def initialize: (String message, subject: untyped, location: Location) -> void
    end

    def self.parse_method_type: (String | Buffer, ?variables: Array[Symbol], ?eof_re: Regexp?) -> MethodType
                              
    def self.parse_type: (String | Buffer, ?variables: Array[Symbol], ?eof_re: Regexp?) -> Types::t
                       
    def self.parse_signature: (String | Buffer, ?eof_re: Regexp?) -> Array[AST::Declarations::t]
  end
end