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:
Alexander Udalov
2015-08-06 03:21:46 +03:00
parent 8dddce5ac5
commit 942ab9ef6d
18 changed files with 72 additions and 82 deletions
@@ -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(