diff --git a/crates/oxc_ast/src/serialize/js.rs b/crates/oxc_ast/src/serialize/js.rs index 9f4308f094771..f541232119502 100644 --- a/crates/oxc_ast/src/serialize/js.rs +++ b/crates/oxc_ast/src/serialize/js.rs @@ -326,7 +326,7 @@ impl ESTree for MethodDefinitionKey<'_, '_> { } } -/// Serializer for `ArrowFunctionExpression`'s `body` field. +/// Serializer for `body` field of `ArrowFunctionExpression`. /// /// Serialize as either an expression (if `expression` property is set), /// or a `BlockStatement` (if it's not). @@ -350,7 +350,7 @@ impl ESTree for ArrowFunctionExpressionBody<'_> { } } -/// Serializer for `AssignmentTargetPropertyIdentifier`'s `init` field +/// Serializer for `init` field of `AssignmentTargetPropertyIdentifier` /// (which is renamed to `value` in ESTree AST). #[ast_meta] #[estree( diff --git a/crates/oxc_ast/src/serialize/ts.rs b/crates/oxc_ast/src/serialize/ts.rs index d66cc9e8aeab5..ceaa91c6375ba 100644 --- a/crates/oxc_ast/src/serialize/ts.rs +++ b/crates/oxc_ast/src/serialize/ts.rs @@ -27,7 +27,7 @@ impl ESTree for TSEnumMemberComputed<'_, '_> { /// Serializer for `directive` field of `ExpressionStatement`. /// -/// This field is always `null`, and only appears in the TS AST, not JS ESTree. +/// This field is always `null`, and only appears in the TS-ESTree AST, not JS ESTree. #[ast_meta] #[estree(ts_type = "string | null", raw_deser = "null")] #[ts]