checkMain(currentMethod);
checkMain(currentMethod, Position.line(body[i].pos));
    private void genClass(Symbol clazz, Tree[] body) {	Symbol outerClass = currentClass;	currentClass = clazz;	if (clazz.isModuleClass()) {	    tc.getModuleField(clazz);	}	emitSymtab(clazz);	for (int i = 0; i < body.length; i++) {	    Symbol sym = body[i].symbol();	    switch (body[i]) {	    case Empty:		break;	    case ValDef(_, _, _, _):		// just to generate the field declaration		// the rhs should've been moved to the constructor body 		tc.createField(sym);		break;			    case ClassDef(_, _, _, _, _, Template impl):		genClass(sym, impl.body);		break;	    case DefDef(_, _, _, ValDef[][] vparams, Tree tpe, Tree rhs):// 		if (!currentMethod.IsAbstract()) {		if (!sym.isDeferred()) {		    currentMethod = tc.getMethod(sym);		    checkMain(currentMethod);		    genDef(sym, vparams[0], rhs, msilType(tpe.type));		}		break;	    default:		assert false : "Illegal class body definition: "		    + Debug.show(body[i]);	    }	}	currentClass = outerClass;    } //genClass()