def on_enum_parse(self, ctx):
        """Event handler for the enum parse event.

        :param ctx: Generation context information.
        :type ctx: pyesdoc_mp.generators.generator.GeneratorContext

        """
        code = self.emit_enum(ctx)
        dir = get_package_directory(ctx.pkg, ctx.output_dir, 'types')
        file = get_enum_file_name(ctx.enum)
        
        return (code, dir, file)
    def on_package_parse(self, ctx):
        """Event handler for the package parse event.

        :param ctx: Generation context information.
        :type ctx: pyesdoc_mp.generators.generator.GeneratorContext

        """
        # Helper functions.
        def emit_imports():
            return self.emit_imports_for_sub_package(ctx)

        code = self.emit_package_init_file(ctx, _TEMPLATE_PACKAGE_SUB, emit_imports)
        dir = get_package_directory(ctx.pkg, ctx.output_dir, 'types')
        file = get_package_init_file_name()

        return (code, dir, file)