[JS IR] explicitly mark JsName's temporary or not

This commit is contained in:
Anton Bannykh
2021-09-26 15:05:22 +03:00
committed by teamcityserver
parent 7e7c84fcfb
commit 936383254a
12 changed files with 26 additions and 31 deletions
@@ -14,7 +14,7 @@ class JsImport(
val name: JsName,
val alias: JsName?
) {
constructor(name: String, alias: String?) : this(JsName(name), alias?.let { JsName(it) })
constructor(name: String, alias: String?) : this(JsName(name, false), alias?.let { JsName(it, false) })
}
override fun accept(visitor: JsVisitor) {
@@ -25,10 +25,6 @@ public class JsName extends HasMetadata implements Symbol {
this.temporary = temporary;
}
public JsName(@NotNull String ident) {
this(ident, false);
}
public boolean isTemporary() {
return temporary;
}