only look at yield statements and not arbitrary yield expressions when inlining generator expressions