Skip to content

getContainingList: Handle TypeAliasDeclaration #25614

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

Merged
2 commits merged into from
Jul 13, 2018
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jul 12, 2018

Fixes #25589

@ghost ghost requested a review from amcasey July 12, 2018 18:59
@@ -351,7 +351,8 @@ namespace ts.formatting {
getListIfStartEndIsInListRange((<SignatureDeclaration>node.parent).parameters, start, end);
}
case SyntaxKind.ClassDeclaration:
return getListIfStartEndIsInListRange((<ClassDeclaration>node.parent).typeParameters, node.getStart(sourceFile), end);
case SyntaxKind.TypeAliasDeclaration:
return getListIfStartEndIsInListRange((<ClassDeclaration | TypeAliasDeclaration>node.parent).typeParameters, node.getStart(sourceFile), end);
Copy link
Member

Choose a reason for hiding this comment

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

What about InterfaceDeclaration?

@ghost ghost merged commit 3f4412b into master Jul 13, 2018
@ghost ghost deleted the getContainingList_typeAlias branch July 13, 2018 17:30
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants