Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar.rs')
-rw-r--r--crates/parser/src/grammar.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs
index cf17e8453b..f15272ce87 100644
--- a/crates/parser/src/grammar.rs
+++ b/crates/parser/src/grammar.rs
@@ -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);
}