Change TextChangeRange to be a record type as well.