Rewrite compiler to use CodeModel.