Sha256: cf8e8b06ffe5f84b95ecdad8912ebe1a1bd85cd9cc37b6e5d44fb5975cee3b94

Contents?: true

Size: 907 Bytes

Versions: 18

Compression:

Stored size: 907 Bytes

Contents

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rbs-1.0.6 sig/parser.rbs
rbs-1.0.5 sig/parser.rbs
rbs-1.0.4 sig/parser.rbs
rbs-1.0.3 sig/parser.rbs
rbs-1.0.2 sig/parser.rbs
rbs-1.0.1 sig/parser.rbs
rbs-1.0.0 sig/parser.rbs
rbs-1.0.0.pre2 sig/parser.rbs
rbs-1.0.0.pre sig/parser.rbs
rbs-0.20.1 sig/parser.rbs
rbs-0.20.0 sig/parser.rbs
rbs-0.19.0 sig/parser.rbs
rbs-0.18.1 sig/parser.rbs
rbs-0.18.0 sig/parser.rbs
rbs-0.17.0 sig/parser.rbs
rbs-0.16.0 sig/parser.rbs
rbs-0.15.0 sig/parser.rbs
rbs-0.14.0 sig/parser.rbs