1
Fork 0

convert ast::expr into a struct

This commit is contained in:
Erick Tryzelaar 2013-01-15 13:51:43 -08:00 committed by Tim Chevalier
parent 1280a64089
commit 8a3a1fc148
15 changed files with 222 additions and 148 deletions

View file

@ -263,8 +263,12 @@ priv impl ext_ctxt {
}
fn expr(span: span, node: ast::expr_) -> @ast::expr {
@{id: self.next_id(), callee_id: self.next_id(),
node: node, span: span}
@ast::expr {
id: self.next_id(),
callee_id: self.next_id(),
node: node,
span: span,
}
}
fn path(span: span, strs: ~[ast::ident]) -> @ast::path {