// As write_sub_paths, but expects a path of the form module_path::trait::method
// Where trait could actually be a struct too.
As write_sub_paths, but expects a path of the form module_path::trait::method
Where trait could actually be a struct too.
As write_sub_paths but expects a path of the form module_path :: trait :: method Where trait could actually be a struct too .
fn write_sub_path_trait_truncated(&mut self, path: &ast::Path) {
        let sub_paths = self.process_path_prefixes(path);
        let len = sub_paths.len();
        if len <= 1 {
            return;
        }
        let sub_paths = &sub_paths[.. (len-1)];
        // write the trait part of the sub-path
        let (ref span, ref qualname) = sub_paths[len-2];
        self.dumper.type_ref(TypeRefData {
            ref_id: None,
            span: *span,
            qualname: qualname.to_owned(),
            scope: 0
        }.lower(self.tcx));
        // write the other sub-paths
        if len <= 2 {
            return;
        }
        let sub_paths = &sub_paths[..len-2];
        for &(ref span, ref qualname) in sub_paths {
            self.dumper.mod_ref(ModRefData {
                span: *span,
                qualname: qualname.to_owned(),
                scope: self.cur_scope,
                ref_id: None
            }.lower(self.tcx));
        }
    }
fn write_sub_path_trait_truncated ( & mut self , path : & ast :: Path ) { let sub_paths = self . process_path_prefixes ( path ) ; let len = sub_paths . len ( ) ; if len <= 1 { return ; } let sub_paths = & sub_paths [ .. ( len - 1 ) ] ; // write the trait part of the sub-path let ( ref span , ref qualname ) = sub_paths [ len - 2 ] ; self . dumper . type_ref ( TypeRefData { ref_id : None , span : * span , qualname : qualname . to_owned ( ) , scope : 0 } . lower ( self . tcx ) ) ; // write the other sub-paths if len <= 2 { return ; } let sub_paths = & sub_paths [ .. len - 2 ] ; for & ( ref span , ref qualname ) in sub_paths { self . dumper . mod_ref ( ModRefData { span : * span , qualname : qualname . to_owned ( ) , scope : self . cur_scope , ref_id : None } . lower ( self . tcx ) ) ; } }
As write_sub_paths, but expects a path of the form module_path::trait::method
Where trait could actually be a struct too.
As write_sub_paths but expects a path of the form module_path :: trait :: method Where trait could actually be a struct too .
&mut self
path
&ast::Path