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

@@ -142,7 +142,7 @@ impl Parser {
// true. Otherwise, return false.
pub fn eat_keyword(&self, kw: keywords::Keyword) -> bool {
let is_kw = match *self.token {
token::IDENT(sid, false) => kw.to_ident().repr == sid.repr,
token::IDENT(sid, false) => kw.to_ident().name == sid.name,
_ => false
};
if is_kw { self.bump() }