class RBS::Location

Pure-Ruby implementation of the primitives that back RBS::Location.

On CRuby these come from the C extension (ext/rbs_extension/legacy_location.c). JRuby loads this instead, before rbs/location_aux.rb layers the public API on top, so RBS::Location behaves identically without the native extension.

Location is the range on buffer, start_pos..end_pos. The index is based on characters.

A location can have child locations.