mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-07 05:08:51 -04:00
made generators have better class names
This commit is contained in:
parent
84fdaeb430
commit
10d07e2c80
4 changed files with 15 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ public class GeneratorClassLoader extends ClassLoader {
|
|||
if (!mem.flags().has(AccessFlag.STATIC)) {
|
||||
mts = mts.insertParameterTypes(0, clm.thisClass().asSymbol());
|
||||
}
|
||||
var gb = new GeneratorBuilder("Gen" + customClazzDefMap.size(), mts.parameterArray());
|
||||
var name = "Gen_" + clm.thisClass().name().stringValue() + "_" + mem.methodName().stringValue() + "_" + customClazzDefMap.size();
|
||||
var gb = new GeneratorBuilder(name, mts.parameterArray());
|
||||
mb.withCode(gb::buildGeneratorMethodShim);
|
||||
addGenerator(gb.CD_this_gen.displayName(), gb.buildGenerator(com));
|
||||
} else mb.with(me);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue