class RBS::Parser
Constants
- KEYWORDS
- LexerError
- SemanticsError
- SyntaxError
Public Class Methods
buffer(source)
click to toggle source
# File rbs-2.1.0/lib/rbs/parser_aux.rb, line 15 def self.buffer(source) case source when String Buffer.new(content: source, name: "a.rbs") when Buffer source end end
parse_method_type(source, line: 1, column: 0, variables: [])
click to toggle source
# File rbs-2.1.0/lib/rbs/parser_aux.rb, line 7 def self.parse_method_type(source, line: 1, column: 0, variables: []) _parse_method_type(buffer(source), line, column, variables) end
parse_signature(source, line: 1, column: 0)
click to toggle source
# File rbs-2.1.0/lib/rbs/parser_aux.rb, line 11 def self.parse_signature(source, line: 1, column: 0) _parse_signature(buffer(source), line, column) end
parse_type(source, line: 1, column: 0, variables: [])
click to toggle source
# File rbs-2.1.0/lib/rbs/parser_aux.rb, line 3 def self.parse_type(source, line: 1, column: 0, variables: []) _parse_type(buffer(source), line, column, variables) end