2018-02-04 13:39:24 +03:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
|
|
pub(super) fn trait_item(p: &mut Parser) {
|
|
|
|
|
assert!(p.at(TRAIT_KW));
|
|
|
|
|
p.bump();
|
2018-02-10 14:15:04 +03:00
|
|
|
name(p);
|
2018-02-04 13:39:24 +03:00
|
|
|
p.expect(L_CURLY);
|
|
|
|
|
p.expect(R_CURLY);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub(super) fn impl_item(p: &mut Parser) {
|
|
|
|
|
assert!(p.at(IMPL_KW));
|
|
|
|
|
p.bump();
|
|
|
|
|
p.expect(IDENT);
|
|
|
|
|
p.expect(L_CURLY);
|
|
|
|
|
p.expect(R_CURLY);
|
|
|
|
|
}
|