DataFlowValue enum property rename: name --> str

This commit is contained in:
Mikhail Glukhikh
2015-10-13 10:15:32 +03:00
parent f8a356747e
commit 7ee1e555bc
@@ -26,7 +26,7 @@ import org.jetbrains.kotlin.types.JetType
*/
class DataFlowValue(val id: Any?, val type: JetType, val kind: DataFlowValue.Kind, val immanentNullability: Nullability) {
enum class Kind(private val name: String) {
enum class Kind(private val str: String) {
// Smart casts are completely safe
STABLE_VALUE("stable"),
// Smart casts are safe but possible changes in loops / closures ahead must be taken into account
@@ -35,7 +35,7 @@ class DataFlowValue(val id: Any?, val type: JetType, val kind: DataFlowValue.Kin
UNPREDICTABLE_VARIABLE("unpredictable"),
OTHER("other");
override fun toString() = name
override fun toString() = str
fun isStable() = this == STABLE_VALUE
}