mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
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:
parent
e2241e6376
commit
11c5e1209a
1 changed files with 2 additions and 1 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Reference in a new issue