comparison src/ast_dump.rs @ 60:9f0f457a67f6

Add ast.Raise.
author Bastien Orivel <eijebong@bananium.fr>
date Mon, 13 Jun 2016 01:24:09 +0200
parents 407b3b217928
children d255a932553f
comparison
equal deleted inserted replaced
59:407b3b217928 60:9f0f457a67f6
294 let items = vec_to_strings_vec(items); 294 let items = vec_to_strings_vec(items);
295 items.join(", ") 295 items.join(", ")
296 }, 296 },
297 statements_to_string(indent, body) 297 statements_to_string(indent, body)
298 ) 298 )
299 },
300 stmt::Raise(exc, cause) => {
301 format!("{}raise{}{}",
302 current_indent,
303 match exc {
304 None => String::new(),
305 Some(ref exc) => format!(" {}", exc.to_string())
306 },
307 match cause {
308 None => String::new(),
309 Some(ref cause) => format!(" from {}", cause.to_string())
310 }
311 )
299 } 312 }
300 } 313 }
301 } 314 }
302 } 315 }
303 316