Fix callable code factory (parameter with default value case)

Before we can have end of '<Type>' and '=' joined as '>=' breaking PSI
So #KT-15941 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-11-22 14:56:44 +03:00
committed by Mikhail Glukhikh
parent 21bd10da2e
commit 7448042b68
4 changed files with 15 additions and 1 deletions
@@ -691,7 +691,7 @@ class KtPsiFactory @JvmOverloads constructor(private val project: Project, val m
}
sb.append(name).append(": ").append(type)
if (defaultValue != null) {
sb.append("= ").append(defaultValue)
sb.append(" = ").append(defaultValue)
}
if (state == State.FIRST_PARAM) {
state = State.REST_PARAMS