Skip to content

Commit

Permalink
ResolvedPrivateProp contain &mut class binding
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 29, 2024
1 parent 64a191e commit 33e0cfc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<'a> PrivatePropsStack<'a> {
if let Some(prop) = private_props.props.get(&ident.name) {
return Some(ResolvedPrivateProp {
prop_binding: &prop.binding,
class_binding: private_props.class_binding.as_mut(),
class_binding: &mut private_props.class_binding,
class_symbol_id: private_props.class_symbol_id,
is_static: prop.is_static,
is_declaration: private_props.is_declaration,
Expand Down Expand Up @@ -93,7 +93,7 @@ pub(super) struct ResolvedPrivateProp<'a, 'b> {
/// Binding for temp var representing the property
pub prop_binding: &'b BoundIdentifier<'a>,
/// Binding for class (if it has one)
pub class_binding: Option<&'b mut BoundIdentifier<'a>>,
pub class_binding: &'b mut Option<BoundIdentifier<'a>>,
/// `SymbolId` for class name (if it has a name)
pub class_symbol_id: Option<SymbolId>,
/// `true` if is a static property
Expand Down

0 comments on commit 33e0cfc

Please sign in to comment.