convert ast::expr into a struct
This commit is contained in:
committed by
Tim Chevalier
parent
1280a64089
commit
8a3a1fc148
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user