File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
trunk/src/comp/syntax/print Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4070b75914cd3b6b891aa5868e77c1921e76eb62
2
+ refs/heads/master: 797cd9fd0ec2a27d4a755d8b22419912f1353bd3
Original file line number Diff line number Diff line change @@ -1056,13 +1056,17 @@ fn print_decl(&ps s, &@ast::decl decl) {
1056
1056
ibox ( s, indent_unit) ;
1057
1057
word_nbsp ( s, "let" ) ;
1058
1058
fn print_local ( & ps s, & @ast:: local loc) {
1059
- word ( s. s , loc. node . ident ) ;
1060
- alt ( loc. node . ty ) {
1059
+ alt loc. node . ty {
1061
1060
some ( ?ty) {
1061
+ ibox ( s, indent_unit) ;
1062
+ word ( s. s , loc. node . ident ) ;
1062
1063
word_space ( s, ":" ) ;
1063
1064
print_type ( s, * ty) ;
1065
+ end ( s) ;
1066
+ }
1067
+ _ {
1068
+ word( s. s , loc. node . ident ) ;
1064
1069
}
1065
- _ { }
1066
1070
}
1067
1071
alt loc. node . init {
1068
1072
some ( ?init) {
You can’t perform that action at this time.
0 commit comments