Skip to content

In getSymbolAtLocation, return undefined instead of unknownSymbol#21774

Merged
2 commits merged into
masterfrom
extract-method_jsxIntrinsicTagSymbol
Feb 8, 2018
Merged

In getSymbolAtLocation, return undefined instead of unknownSymbol#21774
2 commits merged into
masterfrom
extract-method_jsxIntrinsicTagSymbol

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 8, 2018

This is more consistent with the other return values from getSymbolAtLocation.
Also fixes a bug discovered while investigating #21772, since we check for undefined but not unknownSymbol in recordUsagebySymbol in extractSymbol.ts.

@ghost ghost requested review from sandersn and weswigham February 8, 2018 21:47
@ghost ghost merged commit e2178ec into master Feb 8, 2018
@ghost ghost deleted the extract-method_jsxIntrinsicTagSymbol branch February 8, 2018 22:35
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
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.

1 participant