diff src/python_ast.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/python_ast.rs
+++ b/src/python_ast.rs
@@ -40,9 +40,10 @@ pub enum stmt {
     If(expr, Vec<stmt>, Vec<stmt>),
 
     // With(withitem* items, stmt* body)
-    With(Vec<withitem>, Vec<stmt>),
+    // AsyncWith(withitem* items, stmt* body)
+    // If the last field is true, then it's an AsyncWith.
+    With(Vec<withitem>, Vec<stmt>, bool),
 
-    // AsyncWith(withitem* items, stmt* body)
     //AsyncWith(Vec<withitem>, Vec<stmt>)
 
     // Raise(expr? exc, expr? cause)