Skip to content

Commit

Permalink
Docs: Correct doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 17, 2024
1 parent 7f2c451 commit 3b95b4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/oxc_transformer/src/es2022/class_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,9 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {

/// Transform private field expression.
///
/// `this.#x` -> `_classPrivateFieldGet(_x, this)`.
/// Instance prop: `this.#prop` -> `_classPrivateFieldGet(_prop, this)`
/// Static prop: `this.#prop` -> `_assertClassBrand(Class, this, _prop)`
//
// `#[inline]` so that compiler sees that `expr` is an `Expression::PrivateFieldExpression`.
#[inline]
fn transform_private_field_expression(
Expand Down

0 comments on commit 3b95b4c

Please sign in to comment.