generateRejections

Generates source code of rejections in the main scope.