Add code generation to ChainedCall.