Skip to content

Don't copy trivia when implementing an interface #23343

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
Apr 12, 2018

Conversation

ghost
Copy link

@ghost ghost commented Apr 11, 2018

This was accidentally changed in #20338 to include the comments -- but we really shouldn't be copying the comments over from the base class.

@ghost ghost requested a review from amcasey April 11, 2018 20:25
@@ -1488,10 +1488,20 @@ namespace ts {
return visited;
}

export function getSynthesizedDeepCloneWithoutTrivia<T extends Node>(node: T): T {
Copy link
Member

Choose a reason for hiding this comment

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

Why not pass an optional flag to getSynthesizedDeepClone?

@ghost ghost merged commit d2dc2e6 into master Apr 12, 2018
@ghost ghost deleted the getSynthesizedDeepCloneWithoutTrivia branch April 12, 2018 18:47
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 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.

2 participants