parser: Tiny refactoring

This commit is contained in:
Vadim Petrochenkov 2024-01-05 17:29:57 +03:00
parent c586fe40f1
commit fb1cca2937

View File

@ -3735,7 +3735,7 @@ pub(crate) fn mk_expr_with_attrs(&self, span: Span, kind: ExprKind, attrs: AttrV
}
pub(crate) fn mk_expr(&self, span: Span, kind: ExprKind) -> P<Expr> {
P(Expr { kind, span, attrs: AttrVec::new(), id: DUMMY_NODE_ID, tokens: None })
self.mk_expr_with_attrs(span, kind, AttrVec::new())
}
pub(super) fn mk_expr_err(&self, span: Span) -> P<Expr> {