format: inline one-liners related to parse_expr
This commit is contained in:
parent
37a3b7c80e
commit
3d052c920b
1 changed files with 3 additions and 0 deletions
|
@ -3051,6 +3051,7 @@ impl<'a> Parser<'a> {
|
||||||
///
|
///
|
||||||
/// This parses an expression accounting for associativity and precedence of the operators in
|
/// This parses an expression accounting for associativity and precedence of the operators in
|
||||||
/// the expression.
|
/// the expression.
|
||||||
|
#[inline]
|
||||||
fn parse_assoc_expr(&mut self,
|
fn parse_assoc_expr(&mut self,
|
||||||
already_parsed_attrs: Option<ThinVec<Attribute>>)
|
already_parsed_attrs: Option<ThinVec<Attribute>>)
|
||||||
-> PResult<'a, P<Expr>> {
|
-> PResult<'a, P<Expr>> {
|
||||||
|
@ -3711,6 +3712,7 @@ impl<'a> Parser<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse an expression
|
/// Parse an expression
|
||||||
|
#[inline]
|
||||||
pub fn parse_expr(&mut self) -> PResult<'a, P<Expr>> {
|
pub fn parse_expr(&mut self) -> PResult<'a, P<Expr>> {
|
||||||
self.parse_expr_res(Restrictions::empty(), None)
|
self.parse_expr_res(Restrictions::empty(), None)
|
||||||
}
|
}
|
||||||
|
@ -3730,6 +3732,7 @@ impl<'a> Parser<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse an expression, subject to the given restrictions
|
/// Parse an expression, subject to the given restrictions
|
||||||
|
#[inline]
|
||||||
fn parse_expr_res(&mut self, r: Restrictions,
|
fn parse_expr_res(&mut self, r: Restrictions,
|
||||||
already_parsed_attrs: Option<ThinVec<Attribute>>)
|
already_parsed_attrs: Option<ThinVec<Attribute>>)
|
||||||
-> PResult<'a, P<Expr>> {
|
-> PResult<'a, P<Expr>> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue