Repository navigation
Fix symbol table kind mask - #64762
Merged
Jake Bailey (jakebailey) merged 1 commit intoOct 13, 2026
Merged
Conversation
The previous mask retained only one of the three kind bits, disabling alias caching for globals and raw exports and the members fast path.
Member
Author
|
TypeScript Bot (@typescript-bot) perf test this faster |
Contributor
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The corrected mask needs a regression test covering every symbol-table kind.
1 open finding
What changed in this PR
Corrects symbol-table kind extraction so alias caching and member fast paths work as intended.
Changes:
- Preserve all three high-order kind bits in
stKindMask.
| File | Description |
|---|---|
tsc/internal/checker/symbolaccessibility.go |
Fixes the symbol-table kind mask. |
🧠 Review effort: Balanced
|
|
||
| // stKindMask extracts the kind bits from a symbolTableID. | ||
| stKindMask symbolTableID = (iota - 1) << stKindShift | ||
| stKindMask symbolTableID = ^symbolTableID(1<<stKindShift - 1) |
Member
Author
There was a problem hiding this comment.
So, yes, but the test just doesn't feel super great so I skipped it
Contributor
|
Jake Bailey (@jakebailey) Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ryan Cavanaugh (RyanCavanaugh)
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The previous mask retained only one of the three kind bits, disabling alias caching for globals and raw exports and the members fast path. Oops.