comparison 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
comparison
equal deleted inserted replaced
71:2c1e2ce41263 72:7ac23f4336b1
38 38
39 // If(expr test, stmt* body, stmt* orelse) 39 // If(expr test, stmt* body, stmt* orelse)
40 If(expr, Vec<stmt>, Vec<stmt>), 40 If(expr, Vec<stmt>, Vec<stmt>),
41 41
42 // With(withitem* items, stmt* body) 42 // With(withitem* items, stmt* body)
43 With(Vec<withitem>, Vec<stmt>),
44
45 // AsyncWith(withitem* items, stmt* body) 43 // AsyncWith(withitem* items, stmt* body)
44 // If the last field is true, then it's an AsyncWith.
45 With(Vec<withitem>, Vec<stmt>, bool),
46
46 //AsyncWith(Vec<withitem>, Vec<stmt>) 47 //AsyncWith(Vec<withitem>, Vec<stmt>)
47 48
48 // Raise(expr? exc, expr? cause) 49 // Raise(expr? exc, expr? cause)
49 Raise(Option<expr>, Option<expr>), 50 Raise(Option<expr>, Option<expr>),
50 51