Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Need an `adjustMultilineComment` feature analog for `babel-generator` code generation #1582

Open usergenic opened 6 years ago

usergenic commented 6 years ago

escodegen had an adjustMultilineComment option which I assumed helped keep multiline comments properly within max-line-length as indents changed etc.

babel-generator has no such feature, and we may want to add something to do the same thing now that escodegen is no longer available to use on these ASTs.

rictic commented 6 years ago

I always thought adjustMultilineComment was for the leading indentation of subsequent lines. For example, if you add a level of indentation, this comment:

/**
 * Foo
 * Bar
 */

Should become:

  /**
   * Foo
   * Bar
   */

rather than

  /**
 * Foo
 * Bar
 */
rictic commented 6 years ago

(but +1 to preserving this functionality)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.