提交 f03107b5 编写于 作者: G Graydon Hoare

Fix pp bug on native modules.

上级 bd3e2eb4
......@@ -297,6 +297,7 @@ fn print_item(&ps s, &@ast::item item) {
word_nbsp(s, id);
bopen(s);
for (@ast::native_item item in nmod.items) {
hardbreak(s.s);
ibox(s, indent_unit);
maybe_print_comment(s, item.span.lo);
alt (item.node) {
......@@ -307,13 +308,14 @@ fn print_item(&ps s, &@ast::item item) {
case (ast::native_item_fn(?id,?lname,?decl,
?typarams,_,_)) {
print_fn(s, decl, ast::proto_fn, id, typarams);
end(s); // end head-ibox
alt (lname) {
case (none) {}
case (some(?ss)) {
print_string(s, ss);
}
}
end(s); // end head-ibox
end(s); // end the outer fn box
}
}
word(s.s, ";");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册