mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 03:14:30 +00:00
internal: start isolating ssr-related parsing APIs to SSR
This commit is contained in:
parent
634c7682c9
commit
b468bd6645
10 changed files with 44 additions and 45 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue