mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
* Support trailing comments in function parameters for all parameter node types * Create 14835.md --------- Co-authored-by: SUZUKI Sosuke <[email protected]>
25 lines
250 B
JavaScript
25 lines
250 B
JavaScript
function Foo(
|
|
bar
|
|
// Trailing comment
|
|
) {}
|
|
|
|
function Foo(
|
|
{bar}
|
|
// Trailing comment
|
|
) {}
|
|
|
|
function Foo(
|
|
[bar]
|
|
// Trailing comment
|
|
) {}
|
|
|
|
function Foo(
|
|
bar = 1
|
|
// Trailing comment
|
|
) {}
|
|
|
|
function Foo(
|
|
...bar
|
|
// Trailing comment
|
|
) {}
|