I think you should rather use `sc->module->importedFrom` because it emits the template to the object containing the class when compiling multiple modules with -c. Also compare with [typeinfo](https://github.com/D-Programming-Language/dmd/blob/master/src/typinf.c#L144).