Skip to content

Support doc comment template at function expression#25050

Merged
1 commit merged into
masterfrom
docCommentTempalteFunctionExpression
Jun 25, 2018
Merged

Support doc comment template at function expression#25050
1 commit merged into
masterfrom
docCommentTempalteFunctionExpression

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 18, 2018

Fixes #14280

Also needed to fix getting the indentation string. Previously it just copied whatever text was before the marker, but this wasn't guaranteed to be whitespace. There was an attempt to convert to spaces, but it only worked for the first character (due to forgetting the g regexp flag), and would generate too much whitespace anyway. Instead, we walk from the beginning of the line to the first non-whitespace character and make everything preceding that the indentation.

@ghost ghost requested a review from uniqueiniquity June 18, 2018 18:21
@ghost ghost merged commit 6cd27a3 into master Jun 25, 2018
@ghost ghost deleted the docCommentTempalteFunctionExpression branch June 25, 2018 18:40
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

Allow docCommentTemplate before Function Expressions

1 participant