escodegen icon indicating copy to clipboard operation
escodegen copied to clipboard

Comment in arguments

Open neumatho opened this issue 4 years ago • 0 comments

It you have a comment in argument list of a function, then the comment is not included in the output.

function f1(a, /* my comment */ c) {
}

generates

function f1(a, c) {
}

It seems like the attachComments() function place the comment at the right place, namely as leading comment to argument 'c', so the issue is only in the code generator.

-Thomas

neumatho avatar Oct 14 '20 07:10 neumatho