File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 2490cd327514471c8e7fb56a9fba2c2304c04552
2
+ refs/heads/master: d631f29d47578c46bfc01e1a8cc021b295866e0c
Original file line number Diff line number Diff line change @@ -32,6 +32,24 @@ fn ty_to_str(&@ast.ty ty) -> str {
32
32
ret writer. get_str ( ) ;
33
33
}
34
34
35
+ fn block_to_str ( & ast. block blk ) -> str {
36
+ auto writer = io. string_writer ( ) ;
37
+ auto s = @rec ( s=pp. mkstate ( writer. get_writer ( ) , 78 u) ,
38
+ comments=option. none [ vec[ lexer. cmnt ] ] ,
39
+ mutable cur_cmnt=0 u) ;
40
+ print_block ( s, blk) ;
41
+ ret writer. get_str ( ) ;
42
+ }
43
+
44
+ fn expr_to_str ( & @ast. expr e ) -> str {
45
+ auto writer = io. string_writer ( ) ;
46
+ auto s = @rec ( s=pp. mkstate ( writer. get_writer ( ) , 78 u) ,
47
+ comments=option. none [ vec[ lexer. cmnt ] ] ,
48
+ mutable cur_cmnt=0 u) ;
49
+ print_expr ( s, e) ;
50
+ ret writer. get_str ( ) ;
51
+ }
52
+
35
53
impure fn hbox ( ps s) {
36
54
pp. hbox ( s. s , indent_unit) ;
37
55
}
You can’t perform that action at this time.
0 commit comments