Inline and remove parse_expr_assoc
.
It has a single call site.
This commit is contained in:
parent
25523ba382
commit
ead0a45202
1 changed files with 1 additions and 10 deletions
|
@ -136,16 +136,7 @@ impl<'a> Parser<'a> {
|
|||
r: Restrictions,
|
||||
attrs: Option<AttrWrapper>,
|
||||
) -> PResult<'a, P<Expr>> {
|
||||
self.with_res(r, |this| this.parse_expr_assoc(attrs))
|
||||
}
|
||||
|
||||
/// Parses an associative expression.
|
||||
///
|
||||
/// This parses an expression accounting for associativity and precedence of the operators in
|
||||
/// the expression.
|
||||
#[inline]
|
||||
fn parse_expr_assoc(&mut self, attrs: Option<AttrWrapper>) -> PResult<'a, P<Expr>> {
|
||||
self.parse_expr_assoc_with(0, LhsExpr::Unparsed { attrs })
|
||||
self.with_res(r, |this| this.parse_expr_assoc_with(0, LhsExpr::Unparsed { attrs }))
|
||||
}
|
||||
|
||||
/// Parses an associative expression with operators of at least `min_prec` precedence.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue