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
@@ -54,10 +54,8 @@ public class TraitImplBodyCodegen extends ClassBodyCodegen {
@Override
protected void generateKotlinAnnotation() {
// We write LOCAL_CLASS to local trait-impl, because we don't want PSI classes to be constructed for such files
// (currently PSI for synthetic class is built only if this class is a trait-impl, see DecompiledUtils.kt)
writeKotlinSyntheticClassAnnotation(v, DescriptorUtils.isTopLevelOrInnerClass(descriptor)
? KotlinSyntheticClass.Kind.TRAIT_IMPL
: KotlinSyntheticClass.Kind.LOCAL_CLASS);
: KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL);
}
}