Minor. Reformat ScopeUtils.kt

This commit is contained in:
Denis Zharkov
2018-04-10 15:23:54 +03:00
parent d93dff5657
commit a3c8afade5
@@ -93,7 +93,10 @@ fun DeclarationDescriptor.canBeResolvedWithoutDeprecation(
return false
}
fun HierarchicalScope.findFirstClassifierWithDeprecationStatus(name: Name, location: LookupLocation): DescriptorWithDeprecation<ClassifierDescriptor>? {
fun HierarchicalScope.findFirstClassifierWithDeprecationStatus(
name: Name,
location: LookupLocation
): DescriptorWithDeprecation<ClassifierDescriptor>? {
return findFirstFromMeAndParent { it.getContributedClassifierIncludeDeprecated(name, location) }
}
@@ -246,7 +249,10 @@ fun LexicalScope.createScopeForDestructuring(newReceiver: ReceiverParameterDescr
)
}
private class LexicalScopeWrapper(val delegate: LexicalScope, val newImportingScopeChain: ImportingScope) : LexicalScope by delegate {
private class LexicalScopeWrapper(
val delegate: LexicalScope,
private val newImportingScopeChain: ImportingScope
) : LexicalScope by delegate {
init {
assert(delegate !is LexicalScopeWrapper) {
"Do not wrap again to avoid performance issues"