parser: Tiny refactoring
This commit is contained in:
parent
c586fe40f1
commit
fb1cca2937
@ -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> {
|
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> {
|
pub(super) fn mk_expr_err(&self, span: Span) -> P<Expr> {
|
||||||
|
Loading…
Reference in New Issue
Block a user