Minor. Replace lambdas with callable references in LazyJavaClassMemberScope
This commit is contained in:
+6
-6
@@ -258,14 +258,14 @@ class LazyJavaClassMemberScope(
|
|||||||
name, functionsFromSupertypes, emptyList(), ownerDescriptor, ErrorReporter.DO_NOTHING)
|
name, functionsFromSupertypes, emptyList(), ownerDescriptor, ErrorReporter.DO_NOTHING)
|
||||||
|
|
||||||
// add declarations
|
// add declarations
|
||||||
addOverriddenBuiltinMethods(name, result, mergedFunctionFromSuperTypes, result) {
|
addOverriddenBuiltinMethods(
|
||||||
searchMethodsByNameWithoutBuiltinMagic(it)
|
name, result, mergedFunctionFromSuperTypes, result,
|
||||||
}
|
this::searchMethodsByNameWithoutBuiltinMagic)
|
||||||
|
|
||||||
// add from super types
|
// add from super types
|
||||||
addOverriddenBuiltinMethods(name, result, mergedFunctionFromSuperTypes, specialBuiltinsFromSuperTypes) {
|
addOverriddenBuiltinMethods(
|
||||||
searchMethodsInSupertypesWithoutBuiltinMagic(it)
|
name, result, mergedFunctionFromSuperTypes, specialBuiltinsFromSuperTypes,
|
||||||
}
|
this::searchMethodsInSupertypesWithoutBuiltinMagic)
|
||||||
|
|
||||||
val visibleFunctionsFromSupertypes =
|
val visibleFunctionsFromSupertypes =
|
||||||
functionsFromSupertypes.filter { isVisibleAsFunctionInCurrentClass(it) } + specialBuiltinsFromSuperTypes
|
functionsFromSupertypes.filter { isVisibleAsFunctionInCurrentClass(it) } + specialBuiltinsFromSuperTypes
|
||||||
|
|||||||
Reference in New Issue
Block a user