internal: move visibility to a prefix entry point

This commit is contained in:
Aleksey Kladov 2021-12-27 15:22:44 +03:00
parent abc658aad0
commit 350d5dc152
4 changed files with 62 additions and 8 deletions

View file

@ -86,10 +86,6 @@ pub(crate) mod entry_points {
expressions::stmt(p, expressions::StmtWithSemi::Optional, false);
}
pub(crate) fn visibility(p: &mut Parser) {
let _ = opt_visibility(p, false);
}
// Parse a meta item , which excluded [], e.g : #[ MetaItem ]
pub(crate) fn meta_item(p: &mut Parser) {
attributes::meta(p);