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.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/parser/src/grammar.rs b/crates/parser/src/grammar.rs index 6789c61f4b..8310b38b92 100644 --- a/crates/parser/src/grammar.rs +++ b/crates/parser/src/grammar.rs @@ -72,6 +72,9 @@ pub(crate) mod entry { pub(crate) fn expr(p: &mut Parser) { let _ = expressions::expr(p); } + pub(crate) fn path(p: &mut Parser) { + let _ = paths::type_path(p); + } } } @@ -85,12 +88,6 @@ pub(crate) mod entry_points { m.complete(p, SOURCE_FILE); } - pub(crate) use paths::type_path as path; - - pub(crate) fn expr(p: &mut Parser) { - let _ = expressions::expr(p); - } - pub(crate) fn stmt_optional_semi(p: &mut Parser) { expressions::stmt(p, expressions::StmtWithSemi::Optional, false); } |