Skip to content

In JS, always check the extends tag of a class before its heritage clause#25111

Merged
sandersn merged 5 commits into
masterfrom
js/always-check-extends-tag-first
Jun 20, 2018
Merged

In JS, always check the extends tag of a class before its heritage clause#25111
sandersn merged 5 commits into
masterfrom
js/always-check-extends-tag-first

Conversation

@sandersn
Copy link
Copy Markdown
Member

Previously getBaseTypeNodeOfClass checked the extends tag of a class, but this is only used in a few places. Now (almost) everywhere that called getClassExtendsHeritageClauseElement now calls getEffectiveBaseTypeNode, which checks the extends tag and then the heritage clause. The exceptions are places that need to explicitly check the heritage clause.

Fixes #25101

@sandersn sandersn merged commit 0f55566 into master Jun 20, 2018
@sandersn sandersn deleted the js/always-check-extends-tag-first branch June 20, 2018 23:28
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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