convert ast::expr into a struct
This commit is contained in:
parent
1280a64089
commit
8a3a1fc148
15 changed files with 222 additions and 148 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue