- Added some NOTEs for potential TODOs
This commit is contained in:
Tristan B. Velloza Kildaire 2022-12-11 18:01:54 +02:00
parent e6b1de47f1
commit c91d72d0b9
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,8 @@ public final class DCodeEmitter : CodeEmitter
*/
private void emitHeaderComment(string headerPhrase = "")
{
// NOTE: We could maybe fetch input fiel info too? Although it would have to be named similiarly in any case
// so perhaps just appending a `.t` to the module name below would be fine
string moduleName = typeChecker.getResolver().generateName(typeChecker.getModule(), typeChecker.getModule()); //TODO: Lookup actual module name (I was lazy)
string outputCFilename = file.name();
@ -51,6 +53,7 @@ public final class DCodeEmitter : CodeEmitter
file.write(" * Output C file: ");
file.writeln(outputCFilename);
// NOTE: We ought to loop through the linefeeds in `headerPhrase` and "* "-prefix each of them
if(headerPhrase.length)
{
file.writeln(" *\n * "~headerPhrase);