Handle the case that a generator expression is used before treating a non-target as an error.
This is a convenience API to populate the corresponding properties.