Skip to content

Commit

Permalink
style(transformer/private-methods): move comments (#8399)
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 10, 2025
1 parent 05cba5b commit 45e2402
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ impl<'a> ClassProperties<'a, '_> {
let class_ident = class_binding.create_read_expression(ctx);
if is_method {
if is_assignment {
// `toSetter(_prop.bind(object), [])._`
let object =
self.create_assert_class_brand_without_value(class_ident, object, ctx);
// `toSetter(_prop.bind(object), [])._`
self.create_to_setter_for_bind_call(prop_ident, object, span, ctx)
} else if is_accessor {
// `_prop.bind(_assertClassBrand(Class, object))`
let object =
self.create_assert_class_brand_without_value(class_ident, object, ctx);
// `_prop.bind(_assertClassBrand(Class, object))`
create_call_call(prop_ident, object, span, ctx)
} else {
self.create_assert_class_brand(class_ident, object, prop_ident, span, ctx)
Expand All @@ -165,12 +165,12 @@ impl<'a> ClassProperties<'a, '_> {
} else if is_method {
let brand_ident = class_bindings.brand().create_read_expression(ctx);
if is_assignment {
let object = self.create_assert_class_brand_without_value(brand_ident, object, ctx);
// `_toSetter(_prop.call(_assertClassBrand(_Class_brand, object)))._`
let object = self.create_assert_class_brand_without_value(brand_ident, object, ctx);
self.create_to_setter_for_bind_call(prop_ident, object, span, ctx)
} else if is_accessor {
let object = self.create_assert_class_brand_without_value(brand_ident, object, ctx);
// `_prop.bind(_assertClassBrand(_Class_brand, object))`
let object = self.create_assert_class_brand_without_value(brand_ident, object, ctx);
create_call_call(prop_ident, object, span, ctx)
} else {
self.create_assert_class_brand(brand_ident, object, prop_ident, span, ctx)
Expand Down Expand Up @@ -390,9 +390,9 @@ impl<'a> ClassProperties<'a, '_> {

let assert_obj = if is_method {
if is_accessor {
// `_prop.call(_assertClassBrand(Class, object))`
let object =
self.create_assert_class_brand_without_value(class_ident, object1, ctx);
// `_prop.call(_assertClassBrand(Class, object))`
create_call_call(prop_ident, object, span, ctx)
} else {
// `_assertClassBrand(Class, object, _prop)`
Expand Down

0 comments on commit 45e2402

Please sign in to comment.