You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect a more reliable behavior of the comment attachment algorithm, so that the first comment foo is always attached to the same node (preferable the IfStatement node).
Same problem exists for WhileStatement and I would guess ForStatement, ForInStatement, and ForOfStatement.
The text was updated successfully, but these errors were encountered:
Given the following code:
produces the following partial AST when
attachComment
is enabled:As you can see both comments are attached to the
Identifier
node of theIfStatement
test.If the comment in the test condition is not present, the first comment
foo
is directly attached to theIfStatement
node.I would expect a more reliable behavior of the comment attachment algorithm, so that the first comment
foo
is always attached to the same node (preferable theIfStatement
node).Same problem exists for
WhileStatement
and I would guessForStatement
,ForInStatement
, andForOfStatement
.The text was updated successfully, but these errors were encountered: