class RubyLsp::RBSDocument

def parse!

: -> bool
@override
def parse!
  return false unless @needs_parsing
  @needs_parsing = false
  _, _, declarations = RBS::Parser.parse_signature(@source)
  @syntax_error = false
  @parse_result = declarations
  true
rescue RBS::ParsingError
  @syntax_error = true
  true
end