* Add new handleFunctionDeclarationComments function. * Add dangling comments printing for function params. * Add new test case. * Update tests. * Refactor handleFunctionDeclarationComments to only addDanglingComment when no params. * Remove unecessary helper function, only attach dangling comments when no params. * Reset flow tests, no more regression.
4 lines
124 B
JavaScript
4 lines
124 B
JavaScript
function a(/* comment */) {} // comment
|
|
function b() {} // comment
|
|
function c(/* comment */ argA, argB, argC) {} // comment
|