internal: start isolating ssr-related parsing APIs to SSR

This commit is contained in:
Aleksey Kladov 2021-12-27 19:44:45 +03:00
parent 634c7682c9
commit b468bd6645
10 changed files with 44 additions and 45 deletions

View file

@ -141,7 +141,6 @@ pub enum ParserEntryPoint {
Path,
Expr,
StatementOptionalSemi,
Type,
Pattern,
Item,
Attr,
@ -164,7 +163,6 @@ pub fn parse(inp: &Input, entry_point: ParserEntryPoint) -> Output {
let entry_point: fn(&'_ mut parser::Parser) = match entry_point {
ParserEntryPoint::Path => grammar::entry::prefix::path,
ParserEntryPoint::Expr => grammar::entry::prefix::expr,
ParserEntryPoint::Type => grammar::entry::prefix::ty,
ParserEntryPoint::Pattern => grammar::entry::prefix::pat,
ParserEntryPoint::Item => grammar::entry::prefix::item,
ParserEntryPoint::StatementOptionalSemi => grammar::entry_points::stmt_optional_semi,