This is a helper to generate code via procedural macros.