Skip to content

Commit a700e7c

Browse files
overlookmotelCopilot
authored andcommitted
refactor(transformer): correct spelling (#16615)
Pure refactor. "writable" is the correct spelling. Correct "writeable" to "writable" in a few places.
1 parent c3ae8fb commit a700e7c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/oxc_transformer/src/es2022/class_properties/class_details.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ impl<'a> ClassesStack<'a> {
177177
})
178178
}
179179

180-
/// Lookup details of writeable private property referred to by `ident`.
180+
/// Lookup details of writable private property referred to by `ident`.
181181
/// Returns `Some` if it refers to a private prop and setter method
182-
pub fn find_writeable_private_prop<'b>(
182+
pub fn find_writable_private_prop<'b>(
183183
&'b mut self,
184184
ident: &PrivateIdentifier<'a>,
185185
) -> Option<ResolvedPrivateProp<'a, 'b>> {
@@ -229,7 +229,7 @@ impl<'a> ClassesStack<'a> {
229229
///
230230
/// This is the return value of [`ClassesStack::find_private_prop`],
231231
/// [`ClassesStack::find_readable_private_prop`] and
232-
/// [`ClassesStack::find_writeable_private_prop`].
232+
/// [`ClassesStack::find_writable_private_prop`].
233233
pub(super) struct ResolvedPrivateProp<'a, 'b> {
234234
/// Binding for temp var representing the property
235235
pub prop_binding: &'b BoundIdentifier<'a>,

crates/oxc_transformer/src/es2022/class_properties/private_field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<'a> ClassProperties<'a, '_> {
6060
let span = field_expr.span;
6161
let object = field_expr.object.take_in(ctx.ast);
6262
let resolved = if is_assignment {
63-
match self.classes_stack.find_writeable_private_prop(&field_expr.field) {
63+
match self.classes_stack.find_writable_private_prop(&field_expr.field) {
6464
Some(prop) => prop,
6565
_ => {
6666
// Early return for read-only error

crates/oxc_transformer/src/es2022/class_properties/private_method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a> ClassProperties<'a, '_> {
4949
let mut function = value.take_in_box(ctx.ast);
5050

5151
let resolved_private_prop = if *kind == MethodDefinitionKind::Set {
52-
self.classes_stack.find_writeable_private_prop(ident)
52+
self.classes_stack.find_writable_private_prop(ident)
5353
} else {
5454
self.classes_stack.find_readable_private_prop(ident)
5555
};

0 commit comments

Comments
 (0)