mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
docs(transformer/class-properties): correct doc comments (#7966)
Correct doc comments which were inaccurate.
This commit is contained in:
parent
c16a85176d
commit
41a14564ec
1 changed files with 2 additions and 5 deletions
|
|
@ -409,8 +409,8 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
|
||||||
/// * `object.#prop &&= value`
|
/// * `object.#prop &&= value`
|
||||||
/// -> `_assertClassBrand(Class, object, _prop)._ && (_prop._ = _assertClassBrand(Class, object, value))`
|
/// -> `_assertClassBrand(Class, object, _prop)._ && (_prop._ = _assertClassBrand(Class, object, value))`
|
||||||
///
|
///
|
||||||
/// Output in all cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression`
|
/// Output in some cases contains an `AssignmentExpression`, so mutate existing `AssignmentExpression`
|
||||||
/// rather than creating a new one.
|
/// rather than creating a new one when possible.
|
||||||
//
|
//
|
||||||
// `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with
|
// `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with
|
||||||
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
|
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
|
||||||
|
|
@ -570,9 +570,6 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
|
||||||
/// -> `_classPrivateFieldSet2(_prop, object, _classPrivateFieldGet2(_prop, object) + value)`
|
/// -> `_classPrivateFieldSet2(_prop, object, _classPrivateFieldGet2(_prop, object) + value)`
|
||||||
/// * `object.#prop &&= value`
|
/// * `object.#prop &&= value`
|
||||||
/// -> `_classPrivateFieldGet2(_prop, object) && _classPrivateFieldSet2(_prop, object, 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
|
// `#[inline]` so that compiler sees `expr` is an `Expression::AssignmentExpression` with
|
||||||
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
|
// `AssignmentTarget::PrivateFieldExpression` on left, and that clones in
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue