mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
fix(transformer): correct code comments (#7247)
Follow-on after #7199. Just correct typos in a couple of comments.
This commit is contained in:
parent
20fe3cd6e7
commit
c5f4ee7a82
2 changed files with 2 additions and 2 deletions
|
|
@ -483,7 +483,7 @@ impl<'a> ArrowFunctionConverter<'a> {
|
||||||
match ancestor {
|
match ancestor {
|
||||||
// `class A { async foo() {} }`
|
// `class A { async foo() {} }`
|
||||||
Ancestor::MethodDefinitionValue(_) => true,
|
Ancestor::MethodDefinitionValue(_) => true,
|
||||||
// Only `({ async foo() {} })` does not include non-method like `({ async foo: function() {} })`,
|
// Only `({ async foo() {} })` does not include non-method like `({ foo: async function() {} })`,
|
||||||
// because it's just a property with a function value
|
// because it's just a property with a function value
|
||||||
Ancestor::ObjectPropertyValue(property) => *property.method(),
|
Ancestor::ObjectPropertyValue(property) => *property.method(),
|
||||||
_ => false,
|
_ => false,
|
||||||
|
|
|
||||||
|
|
@ -755,7 +755,7 @@ impl<'a, 'ctx> AsyncGeneratorExecutor<'a, 'ctx> {
|
||||||
match ancestor {
|
match ancestor {
|
||||||
// `class A { async foo() {} }`
|
// `class A { async foo() {} }`
|
||||||
Ancestor::MethodDefinitionValue(_) => true,
|
Ancestor::MethodDefinitionValue(_) => true,
|
||||||
// Only `({ async foo() {} })` does not include non-method like `({ async foo: function() {} })`,
|
// Only `({ async foo() {} })` does not include non-method like `({ foo: async function() {} })`,
|
||||||
// because it's just a property with a function value
|
// because it's just a property with a function value
|
||||||
Ancestor::ObjectPropertyValue(property) => *property.method(),
|
Ancestor::ObjectPropertyValue(property) => *property.method(),
|
||||||
_ => false,
|
_ => false,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue