Naming with "is" supported for synthetic extensions

This commit is contained in:
Valentin Kipyatkov
2015-07-10 18:23:20 +03:00
parent 27b4960001
commit 22e631dda3
7 changed files with 59 additions and 13 deletions
@@ -49,7 +49,8 @@ fun JetType.supertypes(): Set<JetType> = TypeUtils.getAllSupertypes(this)
fun JetType.isNothing(): Boolean = KotlinBuiltIns.isNothing(this)
fun JetType.isUnit(): Boolean = KotlinBuiltIns.isUnit(this)
fun JetType.isAny(): Boolean = KotlinBuiltIns.isAnyOrNullableAny(this)
fun JetType.isAnyOrNullableAny(): Boolean = KotlinBuiltIns.isAnyOrNullableAny(this)
fun JetType.isBoolean(): Boolean = KotlinBuiltIns.isBoolean(this)
private fun JetType.getContainedTypeParameters(): Collection<TypeParameterDescriptor> {
val declarationDescriptor = getConstructor().getDeclarationDescriptor()