ast: make Name its own type

This commit is contained in:
Corey Richardson
2014-07-06 01:17:59 -07:00
parent f512779554
commit 092c5078be
11 changed files with 149 additions and 106 deletions

View File

@@ -535,6 +535,9 @@ impl<'a> ExtCtxt<'a> {
pub fn ident_of(&self, st: &str) -> ast::Ident {
str_to_ident(st)
}
pub fn name_of(&self, st: &str) -> ast::Name {
token::intern(st)
}
}
/// Extract a string literal from the macro expanded version of `expr`,