rustc: Implement private methods.

Doesn't work cross-crate yet.
This commit is contained in:
Patrick Walton
2012-09-04 18:28:22 -07:00
parent a618d0d7ce
commit fba673b26b
5 changed files with 158 additions and 33 deletions

View File

@@ -2533,7 +2533,8 @@ struct parser {
let mut meths = ~[];
self.expect(token::LBRACE);
while !self.eat(token::RBRACE) {
vec::push(meths, self.parse_method(public));
let vis = self.parse_visibility();
vec::push(meths, self.parse_method(vis));
}
(ident, item_impl(tps, traits, ty, meths), None)
}