class RBS::Parser
Constants
- KEYWORDS
- LexerError
- SemanticsError
- SyntaxError
Public Class Methods
buffer(source)
click to toggle source
# File rbs-2.7.0/lib/rbs/parser_aux.rb, line 17 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.7.0/lib/rbs/parser_aux.rb, line 9 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.7.0/lib/rbs/parser_aux.rb, line 13 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.7.0/lib/rbs/parser_aux.rb, line 5 def self.parse_type(source, line: 1, column: 0, variables: []) _parse_type(buffer(source), line, column, variables) end