class Prism::Location

def end_code_units_offset(encoding = Encoding::UTF_16LE)

The offset from the start of the file in code units of the given encoding.
def end_code_units_offset(encoding = Encoding::UTF_16LE)
  source.code_units_offset(end_offset, encoding)
end