Add and use KtPropertyAccessor#getProperty()

This commit is contained in:
Pavel V. Talanov
2015-12-28 16:03:22 +03:00
parent d511059cfa
commit 4f5f56e4a5
6 changed files with 11 additions and 10 deletions
@@ -160,10 +160,7 @@ public object LightClassUtil {
}
if (declaration is KtPropertyAccessor) {
val propertyParent = declaration.parent
assert(propertyParent is KtProperty) { "JetProperty is expected to be parent of accessor" }
declaration = propertyParent as KtProperty
declaration = declaration.property
}
if (declaration is KtConstructor<*>) {