turn ast::ident into a struct
This will help with the auto_serialize2 migration. We have to change ident from a type alias to uint into a unique type. We need to use a struct instead of a "enum ident = token::str_num" because structs support constants, but newtypes do not.
This commit is contained in:
parent
c0b9986c8f
commit
b96af73159
20 changed files with 152 additions and 122 deletions
|
@ -237,7 +237,7 @@ struct parser {
|
|||
mut restriction: restriction,
|
||||
mut quote_depth: uint, // not (yet) related to the quasiquoter
|
||||
reader: reader,
|
||||
interner: interner<@~str>,
|
||||
interner: @token::ident_interner,
|
||||
keywords: HashMap<~str, ()>,
|
||||
strict_keywords: HashMap<~str, ()>,
|
||||
reserved_keywords: HashMap<~str, ()>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue