Mercurial > python-compiler.rs
diff src/ast_dump.rs @ 73:2a6629ea82b5
Add ast.Await.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Mon, 13 Jun 2016 18:21:06 +0200 |
parents | 7ac23f4336b1 |
children | 97537c90d92d |
line wrap: on
line diff
--- a/src/ast_dump.rs +++ b/src/ast_dump.rs @@ -186,6 +186,7 @@ impl to_string_able for expr { expr::DictComp(key, value, generators) => format!("{{{}: {} {}}}", key.to_string(), value.to_string(), vec_to_strings_vec(generators).join(" ")), expr::Tuple(elts, _) => format!("({})", vec_to_strings_vec(elts).join(", ")), expr::Ellipsis => format!("..."), + expr::Await(value) => format!("await {}", value.to_string()), } } }