JS: Fix local aliases

Local aliases can be copied as-is to a different fragment now. Before this change we would have had to extract the local alias tag (if any) from the source fragment and add to the destination fragment name bindings.
This commit is contained in:
Anton Bannykh
2018-12-18 15:24:39 +03:00
parent 3a258ad08a
commit 52b705e7ae
9 changed files with 1229 additions and 87 deletions
@@ -30,7 +30,9 @@ var JsName.staticRef: JsNode? by MetadataProperty(default = null)
var JsName.descriptor: DeclarationDescriptor? by MetadataProperty(default = null)
var JsName.localAlias: JsName? by MetadataProperty(default = null)
var JsName.localAlias: LocalAlias? by MetadataProperty(default = null)
data class LocalAlias(val name: JsName, val tag: String?)
var JsName.specialFunction: SpecialFunction? by MetadataProperty(default = null)