mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
move stmt to entry points
This commit is contained in:
parent
519ee21bcb
commit
f10f51833c
3 changed files with 11 additions and 13 deletions
|
@ -57,6 +57,10 @@ pub(crate) mod entry {
|
|||
pub(crate) fn block(p: &mut Parser) {
|
||||
expressions::block_expr(p);
|
||||
}
|
||||
|
||||
pub(crate) fn stmt(p: &mut Parser) {
|
||||
expressions::stmt(p, expressions::StmtWithSemi::No, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,8 +74,6 @@ pub(crate) mod entry_points {
|
|||
m.complete(p, SOURCE_FILE);
|
||||
}
|
||||
|
||||
pub(crate) use expressions::block_expr;
|
||||
|
||||
pub(crate) use paths::type_path as path;
|
||||
|
||||
pub(crate) use patterns::pattern_single as pattern;
|
||||
|
@ -82,10 +84,6 @@ pub(crate) mod entry_points {
|
|||
let _ = expressions::expr(p);
|
||||
}
|
||||
|
||||
pub(crate) fn stmt(p: &mut Parser) {
|
||||
expressions::stmt(p, expressions::StmtWithSemi::No, true);
|
||||
}
|
||||
|
||||
pub(crate) fn stmt_optional_semi(p: &mut Parser) {
|
||||
expressions::stmt(p, expressions::StmtWithSemi::Optional, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue