`$generator` should not be there (inconsistent with the documented member)