Support generators in class body