remove fragments from syntax

This commit is contained in:
Aleksey Kladov 2021-12-27 21:34:39 +03:00
parent dacbc6a69a
commit 55f1564101
20 changed files with 0 additions and 98 deletions

View file

@ -180,13 +180,6 @@ impl ast::Path {
}
}
impl ast::Pat {
/// Returns `text`, parsed as a pattern, but only if it has no errors.
pub fn parse(text: &str) -> Result<Self, ()> {
parsing::parse_text_as(text, parser::ParserEntryPoint::Pattern)
}
}
impl ast::Expr {
/// Returns `text`, parsed as an expression, but only if it has no errors.
pub fn parse(text: &str) -> Result<Self, ()> {