perf(semantic): inline enter_kind for TSTypeReference#17432
Conversation
Merge activity
|
CodSpeed Performance ReportMerging #17432 will not alter performanceComparing Summary
Footnotes
|
c2e9e05 to
99c6184
Compare
818d6be to
eaf8531
Compare
99c6184 to
8238b83
Compare
8238b83 to
ea2d639
Compare
eaf8531 to
a1cd171
Compare
a1cd171 to
d08356e
Compare
There was a problem hiding this comment.
Pull request overview
This PR optimizes performance by inlining the enter_kind logic for TSTypeReference nodes directly into a custom visitor method. This avoids the overhead of the match statement in enter_kind for this frequently-visited TypeScript AST node type.
Key changes:
- Added custom
visit_ts_type_referencemethod that sets reference flags inline - Removed the
TSTypeReferencecase from theenter_kindmatch statement
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Ref #18098