Templates "ifn" and "inn" to use kotlinVariable() instead of suggestVariableName()

This commit is contained in:
Valentin Kipyatkov
2015-11-19 10:47:19 +01:00
parent d4ba15fd90
commit 6bd723da11
3 changed files with 16 additions and 6 deletions
@@ -51,6 +51,7 @@ fun KotlinType.immediateSupertypes(): Collection<KotlinType> = TypeUtils.getImme
fun KotlinType.supertypes(): Collection<KotlinType> = TypeUtils.getAllSupertypes(this)
fun KotlinType.isNothing(): Boolean = KotlinBuiltIns.isNothing(this)
fun KotlinType.isNullableNothing(): Boolean = KotlinBuiltIns.isNullableNothing(this)
fun KotlinType.isUnit(): Boolean = KotlinBuiltIns.isUnit(this)
fun KotlinType.isAnyOrNullableAny(): Boolean = KotlinBuiltIns.isAnyOrNullableAny(this)
fun KotlinType.isBoolean(): Boolean = KotlinBuiltIns.isBoolean(this)