JS backend: removed nullable parameters

Since JsScope declareName() parameter became NotNull
This commit is contained in:
Alexey Tsvetkov
2014-09-29 18:28:40 +04:00
committed by Zalim Bashorov
parent 0eedb0dc6b
commit 886ae36e1f
@@ -49,9 +49,9 @@ class NamingContext(
renamings.put(name, replacement)
}
public fun getFreshName(candidate: String?): JsName = scope.declareFreshName(candidate)
public fun getFreshName(candidate: String): JsName = scope.declareFreshName(candidate)
public fun getFreshName(candidate: JsName?): JsName = getFreshName(candidate?.getIdent())
public fun getFreshName(candidate: JsName): JsName = getFreshName(candidate.getIdent())
public fun newVar(name: JsName, value: JsExpression? = null) {
val vars = JsAstUtils.newVar(name, value)