We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714fb7e commit f03a56fCopy full SHA for f03a56f
src/Generator/Driver.cs
@@ -319,7 +319,9 @@ public void SaveCode(IEnumerable<GeneratorOutput> outputs)
319
320
var file = Path.Combine(outputPath, fileRelativePath);
321
WriteGeneratedCodeToFile(file, template.Generate());
322
- output.TranslationUnit.Module.CodeFiles.Add(file);
+
323
+ if (output.TranslationUnit.Module != null)
324
+ output.TranslationUnit.Module.CodeFiles.Add(file);
325
326
Diagnostics.Message("Generated '{0}'", fileRelativePath);
327
}
0 commit comments