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
Compare the formatting of the following two expressions in a playground: "comment"3 and "comment"3+4. The latter shows the comment formatted correctly and the former shows the comment without any formatting. The comments are formatted by the code in SHRBTextStyler>>visitNode: and SHRBTextStyler>>style:ast: directly calls the acceptVisitor: method on the AST node instead of calling #visitNode: on self. Method comments are handled specially by #visitMethodNode: so they always are formatted even though they are at the top level.
The text was updated successfully, but these errors were encountered:
I added the two examples as tests, the testArgumentStylingExpressionWithComment2 was failing without the fix and is now green.
fixespharo-project#5818fixespharo-project#7075
Compare the formatting of the following two expressions in a playground:
"comment"3
and"comment"3+4
. The latter shows the comment formatted correctly and the former shows the comment without any formatting. The comments are formatted by the code inSHRBTextStyler>>visitNode:
andSHRBTextStyler>>style:ast:
directly calls theacceptVisitor:
method on the AST node instead of calling#visitNode:
on self. Method comments are handled specially by#visitMethodNode:
so they always are formatted even though they are at the top level.The text was updated successfully, but these errors were encountered: