diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-09-02 02:50:59 +0200 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-09-02 02:51:21 +0200 |
| commit | 857f8673206fd2d8803e02c68cdeb38e26b95df0 (patch) | |
| tree | 7cfb11be2843774595371087f2829d0e2e830fe2 /src/libsyntax/ext/base.rs | |
| parent | 1f4aba8cbf7caa3a82b52b6f171221ed6067eed5 (diff) | |
| download | rust-857f8673206fd2d8803e02c68cdeb38e26b95df0.tar.gz rust-857f8673206fd2d8803e02c68cdeb38e26b95df0.zip | |
Renamed syntax::ast::ident -> Ident
Diffstat (limited to 'src/libsyntax/ext/base.rs')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 83a19bb4634..913b68da0cb 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -57,7 +57,7 @@ pub struct SyntaxExpanderTTItem { pub type SyntaxExpanderTTItemFun = @fn(@ExtCtxt, Span, - ast::ident, + ast::Ident, ~[ast::token_tree]) -> MacResult; @@ -114,7 +114,7 @@ pub struct BlockInfo { } // a list of ident->name renamings -type RenameList = ~[(ast::ident,Name)]; +type RenameList = ~[(ast::Ident,Name)]; // The base map of methods for expanding syntax extension // AST nodes into full ASTs @@ -228,7 +228,7 @@ pub struct ExtCtxt { // and there are bugs in the code for object // types that make this hard to get right at the // moment. - nmatsakis - mod_path: @mut ~[ast::ident], + mod_path: @mut ~[ast::Ident], trace_mac: @mut bool } @@ -255,9 +255,9 @@ impl ExtCtxt { } pub fn print_backtrace(&self) { } pub fn backtrace(&self) -> Option<@ExpnInfo> { *self.backtrace } - pub fn mod_push(&self, i: ast::ident) { self.mod_path.push(i); } + pub fn mod_push(&self, i: ast::Ident) { self.mod_path.push(i); } pub fn mod_pop(&self) { self.mod_path.pop(); } - pub fn mod_path(&self) -> ~[ast::ident] { (*self.mod_path).clone() } + pub fn mod_path(&self) -> ~[ast::Ident] { (*self.mod_path).clone() } pub fn bt_push(&self, ei: codemap::ExpnInfo) { match ei { ExpnInfo {call_site: cs, callee: ref callee} => { @@ -311,10 +311,10 @@ impl ExtCtxt { pub fn set_trace_macros(&self, x: bool) { *self.trace_mac = x } - pub fn str_of(&self, id: ast::ident) -> @str { + pub fn str_of(&self, id: ast::Ident) -> @str { ident_to_str(&id) } - pub fn ident_of(&self, st: &str) -> ast::ident { + pub fn ident_of(&self, st: &str) -> ast::Ident { str_to_ident(st) } } |
