refactor(parser): shorten code constructing ObjectPropertyKind#24626
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
ccd88a6 to
b8bf085
Compare
There was a problem hiding this comment.
Pull request overview
Refactors the TypeScript parser’s import-type options parsing to construct ObjectPropertyKind directly via the AST builder helper, removing an intermediate ObjectProperty allocation/wrap step.
Changes:
- Replaces manual
ObjectProperty::boxed(...)+ObjectPropertyKind::ObjectProperty(...)wrapping withObjectPropertyKind::new_object_property(...). - Simplifies the
ObjectExpression::boxed(...)call to use the directly-producedObjectPropertyKind.
Merge activity
|
3f24355 to
f78e096
Compare
b8bf085 to
833e7bd
Compare

Pure refactor. Shorten code by using an AST builder method that creates the desired type directly,