Skip to content

Commit

Permalink
style(transformer/class-properties): reformat doc comments (#7653)
Browse files Browse the repository at this point in the history
Follow-on after #7575. By convention we use backticks for code snippets in doc comments.
  • Loading branch information
overlookmotel committed Dec 4, 2024
1 parent c523ccb commit e5145b0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/oxc_transformer/src/es2022/class_properties/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1331,16 +1331,16 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
/// Transform chain expression inside unary expression.
///
/// Instance prop:
/// * "delete object?.#prop.xyz`"
/// -> "object === null || object === void 0 ? true : delete _classPrivateFieldGet(_prop, object).xyz;"
/// * "delete object?.#prop?.xyz;"
/// -> "delete (object === null || object === void 0 ? void 0 : _classPrivateFieldGet(_prop, object))?.xyz;"
/// * `delete object?.#prop.xyz`
/// -> `object === null || object === void 0 ? true : delete _classPrivateFieldGet(_prop, object).xyz;`
/// * `delete object?.#prop?.xyz;`
/// -> `delete (object === null || object === void 0 ? void 0 : _classPrivateFieldGet(_prop, object))?.xyz;`
///
/// Static prop:
/// * "delete object?.#prop.xyz`"
/// -> "object === null || object === void 0 ? true : delete _assertClassBrand(Foo, object, _prop)._.xyz;"
/// * "delete object?.#prop?.xyz;"
/// -> "delete (object === null || object === void 0 ? void 0 : _assertClassBrand(Foo, object, _prop)._)?.xyz;"
/// * `delete object?.#prop.xyz`
/// -> `object === null || object === void 0 ? true : delete _assertClassBrand(Foo, object, _prop)._.xyz;`
/// * `delete object?.#prop?.xyz;`
/// -> `delete (object === null || object === void 0 ? void 0 : _assertClassBrand(Foo, object, _prop)._)?.xyz;`
//
// `#[inline]` so that compiler sees that `expr` is an `Expression::UnaryExpression`.
#[inline]
Expand Down

0 comments on commit e5145b0

Please sign in to comment.