-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add NullKeyword to isPartOfTypeNode, mirroring UndefinedKeyword #53025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NullKeyword to isPartOfTypeNode, mirroring UndefinedKeyword #53025
Conversation
@typescript-bot test this |
Heya @jakebailey, I've started to run the diff-based top-repos suite on this PR at 48286a0. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the diff-based user code test suite on this PR at 48286a0. You can monitor the build here. Update: The results are in! |
Heya @jakebailey, I've started to run the extended test suite on this PR at 48286a0. You can monitor the build here. |
Heya @jakebailey, I've started to run the perf test suite on this PR at 48286a0. You can monitor the build here. Update: The results are in! |
Of course, I am now confused about this function in general. We use it like it always traverses parents, but, it short circuits at keywords? In any case, there's no reason for this function to be inconsistent between |
@jakebailey Here are the results of running the user test suite comparing Everything looks good! |
@jakebailey Here they are:
CompilerComparison Report - main..53025
System
Hosts
Scenarios
TSServerComparison Report - main..53025
System
Hosts
Scenarios
StartupComparison Report - main..53025
System
Hosts
Scenarios
Developer Information: |
@jakebailey Here are the results of running the top-repos suite comparing Everything looks good! |
I'll wait for #52960 before I merge this just to avoid it immediately breaking. Not sure any other outstanding PRs really deal with null, but that one sure does. |
#52984 also has |
While reviewing #52960, I noticed that we have a bunch of lines like
>null : null
, and yet, none like>undefined : undefined
.It turns out that we forgot to add
NullKeyword
toisPartOfTypeNode
. Oops.