diff options
author | 2013-02-21 18:42:12 -0800 | |
---|---|---|
committer | 2013-02-21 18:42:12 -0800 | |
commit | 4190a5880202eba1b57eeee8331eba16d7338020 (patch) | |
tree | 806133cfcae48616a727c20d216ff9b32ab865fe /Source/Dafny | |
parent | a69159f8819e3355591cfa63db38d75a491e9cba (diff) |
Pretty print the new parentheses-less "if" and "while" statements as such.
Diffstat (limited to 'Source/Dafny')
-rw-r--r-- | Source/Dafny/Printer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs index 726b0e99..1ed04767 100644 --- a/Source/Dafny/Printer.cs +++ b/Source/Dafny/Printer.cs @@ -789,9 +789,9 @@ namespace Microsoft.Dafny { if (omitGuard) {
wr.Write("if ... ");
} else {
- wr.Write("if (");
+ wr.Write("if ");
PrintGuard(s.Guard);
- wr.Write(") ");
+ wr.Write(" ");
}
PrintStatement(s.Thn, indent);
if (s.Els == null) {
@@ -812,9 +812,9 @@ namespace Microsoft.Dafny { if (omitGuard) {
wr.WriteLine("while ...");
} else {
- wr.Write("while (");
+ wr.Write("while ");
PrintGuard(s.Guard);
- wr.WriteLine(")");
+ wr.WriteLine();
}
PrintSpec("invariant", s.Invariants, indent + IndentAmount);
|