File tree Expand file tree Collapse file tree 9 files changed +91
-1
lines changed Expand file tree Collapse file tree 9 files changed +91
-1
lines changed Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111//! This module contains the "cleaned" pieces of the AST, and the functions 
212//! that clean them. 
313
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111use  rustc; 
212use  rustc:: { driver,  middle} ; 
313
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111//! This module is used to store stuff from Rust's AST in a more convenient 
212//! manner (and with prettier names) before cleaning. 
313
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111use  std; 
212use  clean:: * ; 
313use  std:: iter:: Extendable ; 
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111#[ link( name = "rustdoc_ng" ,  
212       vers = "0.1.0" ,  
313       uuid = "8c6e4598-1596-4aa5-a24c-b811914bbbc6" ) ]  ; 
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111#[ link( name = "rustdoc_ng" ,  
212       vers = "0.1.0" ,  
313       uuid = "8c6e4598-1596-4aa5-a24c-b811914bbbc6" ) ]  ; 
@@ -77,7 +87,7 @@ fn main() {
7787    let  ( crate ,  res)  = pm. run_plugins ( crate ) ; 
7888    let  plugins_json = ~res. move_iter ( ) . filter_map ( |opt| opt) . collect ( ) ; 
7989
80-     // FIXME: yuck, Rust -> str -> JSON round trip! No way to .encode 
90+     // FIXME #8335 : yuck, Rust -> str -> JSON round trip! No way to .encode 
8191    // straight to the Rust JSON representation. 
8292    let  crate_json_str = do std:: io:: with_str_writer |w| { 
8393        crate . encode ( & mut  extra:: json:: Encoder ( w) ) ; 
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111use  std; 
212use  clean; 
313use  syntax:: ast; 
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111use  clean; 
212
313use  extra; 
Original file line number Diff line number Diff line change 1+ // Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT 
2+ // file at the top-level directory of this distribution and at 
3+ // http://rust-lang.org/COPYRIGHT. 
4+ // 
5+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or 
6+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 
7+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your 
8+ // option. This file may not be copied, modified, or distributed 
9+ // except according to those terms. 
10+ 
111//! Rust AST Visitor. Extracts useful information and massages it into a form 
212//! usable for clean 
313
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments