diff src/ast_dump.rs @ 72:7ac23f4336b1

Add ast.AsyncWith.
author Bastien Orivel <eijebong@bananium.fr>
date Mon, 13 Jun 2016 18:09:15 +0200
parents 2c1e2ce41263
children 2a6629ea82b5
line wrap: on
line diff
--- a/src/ast_dump.rs
+++ b/src/ast_dump.rs
@@ -354,9 +354,10 @@ impl stmt {
                     }
                 )
             },
-            stmt::With(items, body) => {
-                format!("{}with {}:\n{}",
+            stmt::With(items, body, async) => {
+                format!("{}{}with {}:\n{}",
                     current_indent,
+                    if async { "async " } else { "" },
                     vec_to_strings_vec(items).join(", "),
                     statements_to_string(indent, body)
                 )