do class -> function transform in desugar instead of generate
removed unneeded class fromstatement