Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ensure TypeChecker#getTypeAtLocation returns a defined result#25583

Merged
3 commits merged into
mastermicrosoft/TypeScript:masterfrom
getTypeAtLocationmicrosoft/TypeScript:getTypeAtLocationCopy head branch name to clipboard
Jul 11, 2018
Merged

Ensure TypeChecker#getTypeAtLocation returns a defined result#25583
3 commits merged into
mastermicrosoft/TypeScript:masterfrom
getTypeAtLocationmicrosoft/TypeScript:getTypeAtLocationCopy head branch name to clipboard

Conversation

@ghost

@ghost ghost commented Jul 11, 2018

Copy link
Copy Markdown

Fixes #25577

@ghost ghost requested review from DanielRosenwasser, sandersn and weswigham and removed request for weswigham July 11, 2018 17:15

@sandersn sandersn left a comment

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.

I guess no baselines changed because all the other callers were already correct?

In theory it would be nice to get a test case based on the bug this fixes, although with just a stack trace you'd have to make it from scratch.

@ghost

ghost commented Jul 11, 2018

Copy link
Copy Markdown
Author

This function was basically assumed to return a defined result everywhere. It's only had the | undefined type annotation since #22088.
I tried getting a repro but couldn't find a situation where it would return undefined and we have signature help -- may have to do with parse error handling causing an unusual node to be present there.

@ghost ghost merged commit 5f4a03c into master Jul 11, 2018
@ghost ghost deleted the getTypeAtLocation branch July 11, 2018 23:34
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.