class Steep::AST::Node::TypeAssertion

def type(context, factory, type_vars)

def type(context, factory, type_vars)
  if ty = RBS::Parser.parse_type(type_location.buffer, range: type_location.range, variables: type_vars)
    ty = factory.type(ty)
    factory.absolute_type(ty, context: context)
  else
    nil
  end
rescue ::RBS::ParsingError => exn
  exn
end