summaryrefslogtreecommitdiff
path: root/Dafny/Printer.cs
diff options
context:
space:
mode:
authorGravatar Jason Koenig <unknown>2012-06-06 15:54:48 -0700
committerGravatar Jason Koenig <unknown>2012-06-06 15:54:48 -0700
commit43391b50592e2c484872845ff05d670c571f659d (patch)
tree6bdd871a4f5fe12c3a684d57394ba1fb9b9860e4 /Dafny/Printer.cs
parent51c9ca31ec42fd9f677ae3eff7ff70ae5959d0c5 (diff)
Dafny: change labels to use a generic singly linked list
Diffstat (limited to 'Dafny/Printer.cs')
-rw-r--r--Dafny/Printer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dafny/Printer.cs b/Dafny/Printer.cs
index 6cf71fa1..e7cfbf27 100644
--- a/Dafny/Printer.cs
+++ b/Dafny/Printer.cs
@@ -421,9 +421,9 @@ namespace Microsoft.Dafny {
/// </summary>
public void PrintStatement(Statement stmt, int indent) {
Contract.Requires(stmt != null);
- for (LabelNode label = stmt.Labels; label != null; label = label.Next) {
- if (label.Label != null) {
- wr.WriteLine("label {0}:", label.Label);
+ for (LList<Label> label = stmt.Labels; label != null; label = label.Next) {
+ if (label.Data.Name != null) {
+ wr.WriteLine("label {0}:", label.Data.Name);
Indent(indent);
}
}