summary refs log tree commit diff
path: root/src/libsyntax/ast_map.rs
diff options
context:
space:
mode:
authorMarvin Löbel <loebel.marvin@gmail.com>2013-09-02 02:50:59 +0200
committerMarvin Löbel <loebel.marvin@gmail.com>2013-09-02 02:51:21 +0200
commit857f8673206fd2d8803e02c68cdeb38e26b95df0 (patch)
tree7cfb11be2843774595371087f2829d0e2e830fe2 /src/libsyntax/ast_map.rs
parent1f4aba8cbf7caa3a82b52b6f171221ed6067eed5 (diff)
Renamed syntax::ast::ident -> Ident
Diffstat (limited to 'src/libsyntax/ast_map.rs')
-rw-r--r--src/libsyntax/ast_map.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs
index c900bf2c15d..6e022e9804b 100644
--- a/src/libsyntax/ast_map.rs
+++ b/src/libsyntax/ast_map.rs
@@ -27,8 +27,8 @@ use std::vec;
 
 #[deriving(Clone, Eq)]
 pub enum path_elt {
-    path_mod(ident),
-    path_name(ident)
+    path_mod(Ident),
+    path_name(Ident)
 }
 
 pub type path = ~[path_elt];
@@ -44,7 +44,7 @@ pub fn path_to_str_with_sep(p: &[path_elt], sep: &str, itr: @ident_interner)
     strs.connect(sep)
 }
 
-pub fn path_ident_to_str(p: &path, i: ident, itr: @ident_interner) -> ~str {
+pub fn path_ident_to_str(p: &path, i: Ident, itr: @ident_interner) -> ~str {
     if p.is_empty() {
         itr.get(i.name).to_owned()
     } else {
@@ -74,7 +74,7 @@ pub enum ast_node {
     node_expr(@expr),
     node_stmt(@stmt),
     node_arg,
-    node_local(ident),
+    node_local(Ident),
     node_block(Block),
     node_struct_ctor(@struct_def, @item, @path),
     node_callee_scope(@expr)
@@ -89,7 +89,7 @@ pub struct Ctx {
 }
 
 impl Ctx {
-    fn extend(&self, elt: ident) -> @path {
+    fn extend(&self, elt: Ident) -> @path {
         @vec::append(self.path.clone(), [path_name(elt)])
     }
 
@@ -110,7 +110,7 @@ impl Ctx {
     fn map_struct_def(&mut self,
                       struct_def: @ast::struct_def,
                       parent_node: ast_node,
-                      ident: ast::ident) {
+                      ident: ast::Ident) {
         let p = self.extend(ident);
 
         // If this is a tuple-like struct, register the constructor.
@@ -356,7 +356,7 @@ impl Visitor<()> for Ctx {
 
     fn visit_struct_def(&mut self,
                         struct_def: @struct_def,
-                        ident: ident,
+                        ident: Ident,
                         generics: &Generics,
                         node_id: NodeId,
                         _: ()) {