Minor. Reformat ScopeUtils.kt
This commit is contained in:
@@ -93,7 +93,10 @@ fun DeclarationDescriptor.canBeResolvedWithoutDeprecation(
|
|||||||
return false
|
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) }
|
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 {
|
init {
|
||||||
assert(delegate !is LexicalScopeWrapper) {
|
assert(delegate !is LexicalScopeWrapper) {
|
||||||
"Do not wrap again to avoid performance issues"
|
"Do not wrap again to avoid performance issues"
|
||||||
|
|||||||
Reference in New Issue
Block a user