mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-09 11:30:20 +00:00
use Defs in the parse::ast::Expr
This commit is contained in:
parent
5d8bb105c5
commit
ad9d06bd63
18 changed files with 105 additions and 335 deletions
|
@ -39,19 +39,6 @@ pub fn module_defs<'a>() -> impl Parser<'a, Defs<'a>, SyntaxError<'a>> {
|
|||
)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn module_defs_help<'a>() -> impl Parser<'a, Vec<'a, Loc<Def<'a>>>, SyntaxError<'a>> {
|
||||
// force that we parse until the end of the input
|
||||
let min_indent = 0;
|
||||
skip_second!(
|
||||
specialize_region(
|
||||
|e, r| SyntaxError::Expr(e, r.start()),
|
||||
crate::expr::defs(min_indent),
|
||||
),
|
||||
end_of_file()
|
||||
)
|
||||
}
|
||||
|
||||
pub fn parse_header<'a>(
|
||||
arena: &'a bumpalo::Bump,
|
||||
state: State<'a>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue