Skip to content

Commit

Permalink
TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 20, 2024
1 parent 4c92e2a commit 099dd1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/oxc_transformer/src/es2022/class_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,12 @@ impl<'a, 'ctx> ClassProperties<'a, 'ctx> {
field_expr: ArenaBox<'a, PrivateFieldExpression<'a>>,
ctx: &mut TraverseCtx<'a>,
) -> Expression<'a> {
// TODO: Different output if is tag of a `TaggedTemplateExpression`
// "object.#prop`xyz`" -> "_classPrivateFieldGet(_prop, object).bind(object)`xyz`"
// See `private/tagged-template` fixture.
// Probably best to implement as a separate branch for `TaggedTemplateExpression`
// in `enter_expression`, as this is a very rare case.

let prop_and_class_name_binding = self.lookup_private_property(&field_expr.field);
// TODO: Should never be `None` - only because implementation is incomplete.
let Some((prop, class_name_binding)) = prop_and_class_name_binding else {
Expand Down

0 comments on commit 099dd1a

Please sign in to comment.