Introduce KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL

This commit is contained in:
Alexander Udalov
2015-02-13 21:44:48 +03:00
parent ce26ce0458
commit e812c4e67f
7 changed files with 31 additions and 29 deletions
@@ -29,7 +29,9 @@ public fun isKotlinCompiledFile(file: VirtualFile): Boolean {
}
val header = KotlinBinaryClassCache.getKotlinBinaryClass(file)?.getClassHeader()
return header != null && header.syntheticClassKind != KotlinSyntheticClass.Kind.TRAIT_IMPL
return header != null &&
header.syntheticClassKind != KotlinSyntheticClass.Kind.TRAIT_IMPL &&
header.syntheticClassKind != KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL
}
public fun isKotlinWithCompatibleAbiVersion(file: VirtualFile): Boolean {