- Added docstring to `emitHeaderComment()`
This commit is contained in:
Tristan B. Velloza Kildaire 2022-12-11 17:58:33 +02:00
parent fe7390caa0
commit e6b1de47f1
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@ public final class DCodeEmitter : CodeEmitter
gprintln("Code emittings needed: "~to!(string)(walkLength(codeQueue[])));
}
/**
* Emits the header comment which contains information about the source
* file and the generated code file
*
* Params:
* headerPhrase = Optional additional string information to add to the header comment
*/
private void emitHeaderComment(string headerPhrase = "")
{
string moduleName = typeChecker.getResolver().generateName(typeChecker.getModule(), typeChecker.getModule()); //TODO: Lookup actual module name (I was lazy)