Skip to content

Commit

Permalink
docs(transformer/class-properties): correct doc comments (#7966)
Browse files Browse the repository at this point in the history
Correct doc comments which were inaccurate.
  • Loading branch information
overlookmotel committed Dec 17, 2024
1 parent c16a851 commit 41a1456
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
/// * `object.#prop &&= value`
/// -> `_assertClassBrand(Class, object, _prop)._ && (_prop._ = _assertClassBrand(Class, object, value))`
///
/// Output in all cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression`
/// rather than creating a new one.
/// Output in some cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression`
/// rather than creating a new one when possible.
//
// `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
Expand Down Expand Up @@ -570,9 +570,6 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
/// -> `_classPrivateFieldSet2(_prop, object, _classPrivateFieldGet2(_prop, object) + value)`
/// * `object.#prop &&= value`
/// -> `_classPrivateFieldGet2(_prop, object) && _classPrivateFieldSet2(_prop, object, value)`
///
/// Output in all cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression`
/// rather than creating a new one.
//
// `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
Expand Down

0 comments on commit 41a1456

Please sign in to comment.