mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
style(transformer/async-generator-functions): import oxc_allocator::Vec as ArenaVec (#7173)
Follow-on after stack up to #7148. Style nit. Following our convention (#6996), import `oxc_allocator::Vec` as `ArenaVec`, to prevent ambiguity.
This commit is contained in:
parent
1b12328f87
commit
64b7e3a603
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
//! This module is responsible for transforming `for await` to `for` statement
|
||||
|
||||
use oxc_allocator::Vec;
|
||||
use oxc_allocator::Vec as ArenaVec;
|
||||
use oxc_ast::{ast::*, NONE};
|
||||
use oxc_semantic::{ScopeFlags, ScopeId, SymbolFlags};
|
||||
use oxc_span::SPAN;
|
||||
|
|
@ -95,7 +95,7 @@ impl<'a, 'ctx> AsyncGeneratorFunctions<'a, 'ctx> {
|
|||
stmt: &mut ForOfStatement<'a>,
|
||||
parent_scope_id: ScopeId,
|
||||
ctx: &mut TraverseCtx<'a>,
|
||||
) -> Vec<'a, Statement<'a>> {
|
||||
) -> ArenaVec<'a, Statement<'a>> {
|
||||
let step_key =
|
||||
ctx.generate_uid("step", ctx.current_scope_id(), SymbolFlags::FunctionScopedVariable);
|
||||
// step.value
|
||||
|
|
@ -192,11 +192,11 @@ impl<'a, 'ctx> AsyncGeneratorFunctions<'a, 'ctx> {
|
|||
fn build_for_await(
|
||||
iterator: Expression<'a>,
|
||||
step_key: &BoundIdentifier<'a>,
|
||||
body: Vec<'a, Statement<'a>>,
|
||||
body: ArenaVec<'a, Statement<'a>>,
|
||||
for_of_scope_id: ScopeId,
|
||||
parent_scope_id: ScopeId,
|
||||
ctx: &mut TraverseCtx<'a>,
|
||||
) -> Vec<'a, Statement<'a>> {
|
||||
) -> ArenaVec<'a, Statement<'a>> {
|
||||
let var_scope_id = ctx.current_scope_id();
|
||||
|
||||
let iterator_had_error_key =
|
||||
|
|
|
|||
Loading…
Reference in a new issue