Skip to content

Commit

Permalink
Fix incorrect documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Oct 21, 2024
1 parent 2270e72 commit b051f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_transformer/src/common/statement_injector.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//! Utility transform to add new statements before or after the specified statement.
//!
//! `StatementInjectorStore` contains a `FxHashMap<Address, Statement>`. It is stored on `TransformCtx`.
//! `StatementInjectorStore` contains a `FxHashMap<Address, Vec<AdjacentStatement>>`. It is stored on `TransformCtx`.
//!
//! `StatementInjector` transform inserts new statements before or after a statement which is determined by the address of the statement.
//!
//! Other transforms can add statements to the store with `StatementInjectorStore::insert_statement`:
//! Other transforms can add statements to the store with following methods:
//!
//! ```rs
//! self.ctx.statement_injector.insert_before(address, statement);
Expand Down

0 comments on commit b051f24

Please sign in to comment.