Skip to content

Commit

Permalink
Fixed printing
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Nov 22, 2024
1 parent 57efe12 commit 03bf928
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/DafnyCore/AST/Grammar/Printer/Printer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,13 @@ public void PrintModuleDefinition(CompilationData compilation, ModuleDefinition
Contract.Requires(module != null);
Contract.Requires(0 <= indent);
Type.PushScope(scope);
if (module.ModuleKind == ModuleKindEnum.Abstract) {
wr.Write("abstract ");
}
if (module.ModuleKind == ModuleKindEnum.Replaceable) {
wr.Write("replaceable ");
}
PrintAttributes(module.Attributes, indent, () => {
if (module.ModuleKind == ModuleKindEnum.Abstract) {
wr.Write("abstract ");
}
if (module.ModuleKind == ModuleKindEnum.Replaceable) {
wr.Write("replaceable ");
}
wr.Write("module");
});
wr.Write(" ");
Expand Down

0 comments on commit 03bf928

Please sign in to comment.