Change ast::path into a struct.

This commit is contained in:
Erick Tryzelaar
2013-01-13 10:48:09 -08:00
parent 1be4bfb8cc
commit bea67bde21
12 changed files with 144 additions and 71 deletions

View File

@@ -294,8 +294,11 @@ fn default_block(+stmts1: ~[@stmt], expr1: Option<@expr>, id1: node_id) ->
}
fn ident_to_path(s: span, +i: ident) -> @path {
@{span: s, global: false, idents: ~[i],
rp: None, types: ~[]}
@ast::path { span: s,
global: false,
idents: ~[i],
rp: None,
types: ~[] }
}
fn ident_to_pat(id: node_id, s: span, +i: ident) -> @pat {