Make 'hasDefaultValue' an extension on ValueParameterDescriptor
To avoid storing a Boolean and a boolean. It isn't called frequently enough to justify this wasted space for each parameter of every function out there
This commit is contained in:
+1
-10
@@ -90,16 +90,7 @@ public abstract class LazyJavaScope(
|
||||
|
||||
computeNonDeclaredFunctions(result, name)
|
||||
|
||||
val enhancedResult = enhanceSignatures(result)
|
||||
|
||||
// Make sure that lazy things are computed before we release the lock
|
||||
for (f in enhancedResult) {
|
||||
for (p in f.getValueParameters()) {
|
||||
p.hasDefaultValue()
|
||||
}
|
||||
}
|
||||
|
||||
enhancedResult.toReadOnlyList()
|
||||
enhanceSignatures(result).toReadOnlyList()
|
||||
}
|
||||
|
||||
protected data class MethodSignatureData(
|
||||
|
||||
Reference in New Issue
Block a user