mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(ast): shorten code in AST builder (#3835)
Shorten code in AST builder. `MemberExpression` can be converted directly to `AssignmentTarget`.
This commit is contained in:
parent
120696741c
commit
a6487482bc
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ impl<'a> AstBuilder<'a> {
|
|||
self,
|
||||
expr: MemberExpression<'a>,
|
||||
) -> AssignmentTarget<'a> {
|
||||
AssignmentTarget::from(SimpleAssignmentTarget::from(expr))
|
||||
AssignmentTarget::from(expr)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Reference in a new issue