File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
crates/oxc_transformer/src/es2022/class_properties Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 `].
233233pub ( super ) struct ResolvedPrivateProp < ' a , ' b > {
234234 /// Binding for temp var representing the property
235235 pub prop_binding : & ' b BoundIdentifier < ' a > ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } ;
You can’t perform that action at this time.
0 commit comments