Minor. Reformat ScopeUtils.kt
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user