Minor. Inline parameter
This commit is contained in:
+3
-3
@@ -91,7 +91,7 @@ public class LazyJavaClassMemberScope(
|
|||||||
computeAnnotationProperties(name, result)
|
computeAnnotationProperties(name, result)
|
||||||
}
|
}
|
||||||
|
|
||||||
val propertiesFromSupertypes = getPropertiesFromSupertypes(name, getContainingDeclaration())
|
val propertiesFromSupertypes = getPropertiesFromSupertypes(name)
|
||||||
|
|
||||||
result.addAll(DescriptorResolverUtils.resolveOverrides(name, propertiesFromSupertypes, result, getContainingDeclaration(),
|
result.addAll(DescriptorResolverUtils.resolveOverrides(name, propertiesFromSupertypes, result, getContainingDeclaration(),
|
||||||
c.components.errorReporter))
|
c.components.errorReporter))
|
||||||
@@ -118,8 +118,8 @@ public class LazyJavaClassMemberScope(
|
|||||||
result.add(propertyDescriptor)
|
result.add(propertyDescriptor)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getPropertiesFromSupertypes(name: Name, descriptor: ClassDescriptor): Set<PropertyDescriptor> {
|
private fun getPropertiesFromSupertypes(name: Name): Set<PropertyDescriptor> {
|
||||||
return descriptor.typeConstructor.supertypes.flatMap {
|
return getContainingDeclaration().typeConstructor.supertypes.flatMap {
|
||||||
it.memberScope.getProperties(name, NoLookupLocation.WHEN_GET_SUPER_MEMBERS).map { p -> p as PropertyDescriptor }
|
it.memberScope.getProperties(name, NoLookupLocation.WHEN_GET_SUPER_MEMBERS).map { p -> p as PropertyDescriptor }
|
||||||
}.toSet()
|
}.toSet()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user