Refactored ast_map and friends, mainly to have Paths without storing them.

This commit is contained in:
Eduard Burtescu
2014-02-14 07:07:09 +02:00
parent 22c34f3c4c
commit a02b10a062
92 changed files with 1987 additions and 2573 deletions

View File

@@ -125,10 +125,9 @@ pub type Name = u32;
/// A mark represents a unique id associated with a macro expansion
pub type Mrk = u32;
impl<S:Encoder> Encodable<S> for Ident {
impl<S: Encoder> Encodable<S> for Ident {
fn encode(&self, s: &mut S) {
let string = token::get_ident(self.name);
s.emit_str(string.get());
s.emit_str(token::get_ident(*self).get());
}
}