[JS IR] Use single line comment instead of JsDoc comment for comments with path

This commit is contained in:
Zalim Bashorov
2019-11-20 19:17:42 +03:00
parent 83e85b3ec8
commit fa76b9cf83
@@ -45,7 +45,7 @@ class IrModuleToJsTransformer(
module.files.forEach {
val fileStatements = it.accept(IrFileToJsTransformer(), context).statements
if (fileStatements.isNotEmpty()) {
statements.add(JsDocComment(mapOf("file" to it.path)).makeStmt())
statements.add(JsSingleLineComment("file: ${it.path}"))
statements.addAll(fileStatements)
}