refactor(transformer/arrow-functions): correct comments (#7163)

Follow-on after #7113. This comment was outdated after the changes in that PR.
This commit is contained in:
overlookmotel 2024-11-06 14:08:04 +00:00
parent e2241e6376
commit 11c5e1209a

View file

@ -369,7 +369,7 @@ impl<'a> ArrowFunctionConverter<'a> {
match ancestor {
// Top level
Ancestor::ProgramBody(_)
// Function (includes class method body)
// Function params
| Ancestor::FunctionParams(_)
// Class property body
| Ancestor::PropertyDefinitionValue(_)
@ -392,6 +392,7 @@ impl<'a> ArrowFunctionConverter<'a> {
Some(func.scope_id().get().unwrap())
}
}
// Function body
Ancestor::FunctionBody(func) => {
return if self.is_async_only() && *func.r#async()
&& matches!(