@@ -99,8 +99,8 @@ pub struct CrateDebugContext {
9999 priv current_debug_location : DebugLocation ,
100100 priv created_files : HashMap < ~str , DIFile > ,
101101 priv created_types : HashMap < uint , DIType > ,
102- priv local_namespace_map : HashMap < ast:: NodeId , @NamespaceTree > ,
103- priv extern_namespaces : HashMap < ~[ ast:: Ident ] , @NamespaceTree > ,
102+ priv local_namespace_map : HashMap < ast:: NodeId , @NamespaceTreeNode > ,
103+ priv extern_namespaces : HashMap < ~[ ast:: Ident ] , @NamespaceTreeNode > ,
104104}
105105
106106impl CrateDebugContext {
@@ -2369,13 +2369,13 @@ fn populate_scope_map(cx: &mut CrateContext,
23692369// Namespace Handling
23702370//=-------------------------------------------------------------------------------------------------
23712371
2372- struct NamespaceTree {
2372+ struct NamespaceTreeNode {
23732373 ident: ast:: Ident ,
23742374 scope: DIScope ,
2375- parent: Option <@NamespaceTree >,
2375+ parent: Option <@NamespaceTreeNode >,
23762376}
23772377
2378- impl NamespaceTree {
2378+ impl NamespaceTreeNode {
23792379 fn mangled_name_of_contained_item( & self , item_name: & str) -> ~str {
23802380 let mut name = ~"_ZN";
23812381 fill_nested ( self , & mut name) ;
@@ -2385,7 +2385,7 @@ impl NamespaceTree {
23852385
23862386 return name;
23872387
2388- fn fill_nested ( node : & NamespaceTree , output : & mut ~str ) {
2388+ fn fill_nested ( node : & NamespaceTreeNode , output : & mut ~str ) {
23892389 match node. parent {
23902390 Some ( parent) => {
23912391 fill_nested ( parent, output) ;
@@ -2400,15 +2400,15 @@ impl NamespaceTree {
24002400
24012401fn namespace_for_external_item( cx: & mut CrateContext ,
24022402 item_path: & ast_map:: path)
2403- -> @NamespaceTree {
2403+ -> @NamespaceTreeNode {
24042404 if item_path. len ( ) < 2 {
24052405 cx. sess . bug ( fmt ! ( "debuginfo::namespace_for_external_item() - Invalid item_path: %s" ,
24062406 ast_map:: path_to_str( * item_path, token:: get_ident_interner( ) ) ) ) ;
24072407 }
24082408
24092409 let path_excluding_item = item_path. slice_to ( item_path. len ( ) - 1 ) ;
24102410 let mut current_key = vec:: with_capacity ( path_excluding_item. len ( ) ) ;
2411- let mut parent_node: Option < @NamespaceTree > = None ;
2411+ let mut parent_node: Option < @NamespaceTreeNode > = None ;
24122412 let last_index = path_excluding_item. len ( ) - 1 ;
24132413
24142414 for ( i, & path_element) in path_excluding_item. iter ( ) . enumerate ( ) {
@@ -2442,7 +2442,7 @@ fn namespace_for_external_item(cx: &mut CrateContext,
24422442 }
24432443 } ;
24442444
2445- let node = @NamespaceTree {
2445+ let node = @NamespaceTreeNode {
24462446 ident : ident,
24472447 scope : namespace_metadata,
24482448 parent : parent_node,
@@ -2466,7 +2466,7 @@ fn namespace_for_external_item(cx: &mut CrateContext,
24662466
24672467struct NamespaceVisitor < ' self > {
24682468 module_ident : ast:: Ident ,
2469- scope_stack : ~[ @NamespaceTree ] ,
2469+ scope_stack : ~[ @NamespaceTreeNode ] ,
24702470 crate_context : & ' self mut CrateContext ,
24712471}
24722472
@@ -2484,7 +2484,7 @@ impl<'self> NamespaceVisitor<'self> {
24842484
24852485 fn new_function_visitor < ' a > ( cx : & ' a mut CrateContext ,
24862486 function_name : & str ,
2487- parent_node : Option < @NamespaceTree > ,
2487+ parent_node : Option < @NamespaceTreeNode > ,
24882488 file_metadata : DIFile ,
24892489 span : Span )
24902490 -> NamespaceVisitor < ' a > {
@@ -2507,7 +2507,7 @@ impl<'self> NamespaceVisitor<'self> {
25072507 }
25082508 } ;
25092509
2510- let function_node = @NamespaceTree {
2510+ let function_node = @NamespaceTreeNode {
25112511 scope : namespace_metadata,
25122512 ident : companion_ident,
25132513 parent : parent_node,
@@ -2552,7 +2552,7 @@ impl<'self> visit::Visitor<()> for NamespaceVisitor<'self> {
25522552 }
25532553 } ;
25542554
2555- let this_node = @NamespaceTree {
2555+ let this_node = @NamespaceTreeNode {
25562556 scope : namespace_metadata,
25572557 ident : self . module_ident ,
25582558 parent : parent_node,
0 commit comments