libsyntax: change token_is_word to take &Token
This commit is contained in:
parent
34c02a6c0e
commit
de6d9f66b5
@ -137,7 +137,7 @@ pub impl Parser {
|
||||
}
|
||||
}
|
||||
|
||||
fn token_is_word(word: &~str, tok: &token::Token) -> bool {
|
||||
pure fn token_is_word(word: &~str, tok: &token::Token) -> bool {
|
||||
match *tok {
|
||||
token::IDENT(sid, false) => { *self.id_to_str(sid) == *word }
|
||||
_ => { false }
|
||||
|
Loading…
Reference in New Issue
Block a user