diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-01 22:41:41 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-01 22:41:54 -0800 |
| commit | 2b67de06c8f0436563284e01fe0e925f2ba225b4 (patch) | |
| tree | 7b32ecef70c57d319d84813369254170dc2560f0 /src/comp/syntax/print/pprust.rs | |
| parent | ae0d49aa06c1ed73320f32896710b6d015bea9c0 (diff) | |
| download | rust-2b67de06c8f0436563284e01fe0e925f2ba225b4.tar.gz rust-2b67de06c8f0436563284e01fe0e925f2ba225b4.zip | |
rustdoc: Add support for type items
Diffstat (limited to 'src/comp/syntax/print/pprust.rs')
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index cf2f09d50ea..3bb47ce6c46 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -90,6 +90,10 @@ fn stmt_to_str(s: ast::stmt) -> str { be to_str(s, print_stmt); } fn item_to_str(i: @ast::item) -> str { be to_str(i, print_item); } +fn typarams_to_str(tps: [ast::ty_param]) -> str { + be to_str(tps, print_type_params) +} + fn path_to_str(&&p: @ast::path) -> str { be to_str(p, bind print_path(_, _, false)); } @@ -1253,7 +1257,7 @@ fn print_bounds(s: ps, bounds: @[ast::ty_param_bound]) { } } -fn print_type_params(s: ps, params: [ast::ty_param]) { +fn print_type_params(s: ps, &¶ms: [ast::ty_param]) { if vec::len(params) > 0u { word(s.s, "<"); fn printParam(s: ps, param: ast::ty_param) { |
