mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +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 {
|
match ancestor {
|
||||||
// Top level
|
// Top level
|
||||||
Ancestor::ProgramBody(_)
|
Ancestor::ProgramBody(_)
|
||||||
// Function (includes class method body)
|
// Function params
|
||||||
| Ancestor::FunctionParams(_)
|
| Ancestor::FunctionParams(_)
|
||||||
// Class property body
|
// Class property body
|
||||||
| Ancestor::PropertyDefinitionValue(_)
|
| Ancestor::PropertyDefinitionValue(_)
|
||||||
|
|
@ -392,6 +392,7 @@ impl<'a> ArrowFunctionConverter<'a> {
|
||||||
Some(func.scope_id().get().unwrap())
|
Some(func.scope_id().get().unwrap())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Function body
|
||||||
Ancestor::FunctionBody(func) => {
|
Ancestor::FunctionBody(func) => {
|
||||||
return if self.is_async_only() && *func.r#async()
|
return if self.is_async_only() && *func.r#async()
|
||||||
&& matches!(
|
&& matches!(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue