function slice_source(code_slice, offset, { file_basename, filename, get_location }) {
	return {
		source: code_slice,
		get_location: (index) => get_location(index + offset),
		file_basename,
		filename
	};
}
@param {string} code_slice
@param {number} offset
@param {Source} opts
@returns {Source}