def emits(name: str):
    """Decorator that marks a function for what it will desugar.
    Also marks as a classmethod.
    """
    def deco(fn):
        fn.emitter_for = name
        return classmethod(fn)
    return deco