Skip to content

Remove redundant code from getResolvedSignatureWorker - #52721

Closed
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:cleanup/getResolvedSignatureWorker
Closed

Remove redundant code from getResolvedSignatureWorker#52721
Mateusz Burzyński (Andarist) wants to merge 1 commit into
microsoft:mainfrom
Andarist:cleanup/getResolvedSignatureWorker

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

while investigating what extra tests I should add as part of #52679 i noticed that some pieces here might not be needed (at least according to the existing test suite)

@typescript-botTypeScript Bot (typescript-bot) added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Feb 10, 2023
@typescript-bot

Copy link
Copy Markdown
Contributor

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@andrewbranch

Copy link
Copy Markdown
Member

@typescript-bot

TypeScript Bot (typescript-bot) commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

Heya Andrew Branch (@andrewbranch), I've started to run the diff-based top-repos suite on this PR at 226985f. You can monitor the build here.

Update: The results are in!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getParseTreeNode returns undefined when the input node is transformed. This is here to prevent crashes when API consumers try to do something they shouldn’t do. I think we want to keep it.

@Andarist

Copy link
Copy Markdown
ContributorAuthor

In such a case, there is no point in this PR. More meaningful changes in this code are happening here anyway

@typescript-bot

Copy link
Copy Markdown
Contributor

Andrew Branch (@andrewbranch) Here are the results of running the top-repos suite comparing main and refs/pull/52721/merge:

Everything looks good!

@Andarist

Copy link
Copy Markdown
ContributorAuthor

Andrew Branch (@andrewbranch) I got curious about this case - is there a way to write a unit~ test that would cover this scenario? 🤔

@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Andarist@typescript-bot@andrewbranch