rename repr to name

This commit is contained in:
John Clements
2013-05-17 10:18:09 -07:00
parent 7266981b4c
commit 22d21ab4c2
8 changed files with 108 additions and 108 deletions

View File

@@ -25,12 +25,12 @@ use core::to_str::ToStr;
use extra::serialize::{Encodable, Decodable, Encoder, Decoder};
// an identifier contains an index into the interner
// table and a SyntaxContext to track renaming and
// an identifier contains a Name (index into the interner
// table) and a SyntaxContext to track renaming and
// macro expansion per Flatt et al., "Macros
// That Work Together"
#[deriving(Eq)]
pub struct ident { repr: Name, ctxt: SyntaxContext }
pub struct ident { name: Name, ctxt: SyntaxContext }
// a SyntaxContext represents a chain of macro-expandings
// and renamings. Each macro expansion corresponds to
@@ -96,7 +96,7 @@ impl<D:Decoder> Decodable<D> for ident {
impl to_bytes::IterBytes for ident {
#[inline(always)]
fn iter_bytes(&self, lsb0: bool, f: to_bytes::Cb) -> bool {
self.repr.iter_bytes(lsb0, f)
self.name.iter_bytes(lsb0, f)
}
}