JS backend: removed nullable parameters
Since JsScope declareName() parameter became NotNull
This commit is contained in:
committed by
Zalim Bashorov
parent
0eedb0dc6b
commit
886ae36e1f
@@ -49,9 +49,9 @@ class NamingContext(
|
|||||||
renamings.put(name, replacement)
|
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) {
|
public fun newVar(name: JsName, value: JsExpression? = null) {
|
||||||
val vars = JsAstUtils.newVar(name, value)
|
val vars = JsAstUtils.newVar(name, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user