move pat to prefix entry points

This commit is contained in:
Aleksey Kladov 2021-12-27 16:06:02 +03:00
parent f10f51833c
commit 5636bef2ec
3 changed files with 17 additions and 5 deletions

View file

@ -61,6 +61,10 @@ pub(crate) mod entry {
pub(crate) fn stmt(p: &mut Parser) {
expressions::stmt(p, expressions::StmtWithSemi::No, true);
}
pub(crate) fn pat(p: &mut Parser) {
patterns::pattern_single(p);
}
}
}
@ -76,8 +80,6 @@ pub(crate) mod entry_points {
pub(crate) use paths::type_path as path;
pub(crate) use patterns::pattern_single as pattern;
pub(crate) use types::type_;
pub(crate) fn expr(p: &mut Parser) {