Move isGenerator and isAsyncFunction to ParseTree
Clean up GeneratorTransformPass