pub(crate) fn parse_function(
    parser: &mut Parser<'_>,
    allow_expr: bool
) -> ParseResult<()>