File tree 9 files changed +91
-1
lines changed
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
+
1
11
//! This module contains the "cleaned" pieces of the AST, and the functions
2
12
//! that clean them.
3
13
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
+
1
11
use rustc;
2
12
use rustc:: { driver, middle} ;
3
13
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
+
1
11
//! This module is used to store stuff from Rust's AST in a more convenient
2
12
//! manner (and with prettier names) before cleaning.
3
13
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
+
1
11
use std;
2
12
use clean:: * ;
3
13
use 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
+
1
11
#[ link( name = "rustdoc_ng" ,
2
12
vers = "0.1.0" ,
3
13
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
+
1
11
#[ link( name = "rustdoc_ng" ,
2
12
vers = "0.1.0" ,
3
13
uuid = "8c6e4598-1596-4aa5-a24c-b811914bbbc6" ) ] ;
@@ -77,7 +87,7 @@ fn main() {
77
87
let ( crate , res) = pm. run_plugins ( crate ) ;
78
88
let plugins_json = ~res. move_iter ( ) . filter_map ( |opt| opt) . collect ( ) ;
79
89
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
81
91
// straight to the Rust JSON representation.
82
92
let crate_json_str = do std:: io:: with_str_writer |w| {
83
93
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
+
1
11
use std;
2
12
use clean;
3
13
use 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
+
1
11
use clean;
2
12
3
13
use 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
+
1
11
//! Rust AST Visitor. Extracts useful information and massages it into a form
2
12
//! usable for clean
3
13
You can’t perform that action at this time.
0 commit comments