diff options
author | Jason Koenig <unknown> | 2012-06-06 15:54:48 -0700 |
---|---|---|
committer | Jason Koenig <unknown> | 2012-06-06 15:54:48 -0700 |
commit | 43391b50592e2c484872845ff05d670c571f659d (patch) | |
tree | 6bdd871a4f5fe12c3a684d57394ba1fb9b9860e4 /Dafny/Printer.cs | |
parent | 51c9ca31ec42fd9f677ae3eff7ff70ae5959d0c5 (diff) |
Dafny: change labels to use a generic singly linked list
Diffstat (limited to 'Dafny/Printer.cs')
-rw-r--r-- | Dafny/Printer.cs | 6 |
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);
}
}
|