Base class code gen support.