feat: add limited support of comments inside js call.

This commit is contained in:
Artem Kobzar
2022-04-11 17:03:28 +00:00
committed by Space
parent bfe8c3b263
commit f142599243
@@ -1147,6 +1147,15 @@ public class JsToStringGenerationVisitor extends JsVisitor {
newline();
}
@Override
public void visitMultiLineComment(@NotNull JsMultiLineComment comment) {
p.print("/*");
p.print(comment.getText());
p.print("*/");
needSemi = false;
newline();
}
@Override
public void visitDocComment(@NotNull JsDocComment comment) {
boolean asSingleLine = comment.getTags().size() == 1;