Skip to content

Preserve original comments on params in dts generated by pseudo type node builder under removeComments: false#3263

Open
Andarist wants to merge 2 commits intomicrosoft:mainfrom
Andarist:fix/comments-on-params-in-dts
Open

Preserve original comments on params in dts generated by pseudo type node builder under removeComments: false#3263
Andarist wants to merge 2 commits intomicrosoft:mainfrom
Andarist:fix/comments-on-params-in-dts

Conversation

@Andarist
Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +665 to +667
parameter.DotDotDotToken != nil,
e.Name(),
e.AsParameterDeclaration().QuestionToken != nil || e.AsParameterDeclaration().Initializer != nil,
ch.typeFromParameter(e.AsParameterDeclaration()),
parameter.QuestionToken != nil || parameter.Initializer != nil,
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.

At some level, why even have any of these if we are ferrying along the declaration?

(Or, why not just use p.Name.Parent more above?)

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