Minor
This commit is contained in:
@@ -228,11 +228,9 @@ private class MemberScopeToImportingScopeAdapter(override val parent: ImportingS
|
|||||||
|
|
||||||
inline fun LexicalScope.processForMeAndParent(process: (LexicalScope) -> Unit) {
|
inline fun LexicalScope.processForMeAndParent(process: (LexicalScope) -> Unit) {
|
||||||
var currentScope = this
|
var currentScope = this
|
||||||
process(currentScope)
|
while (true) {
|
||||||
|
|
||||||
while(currentScope.parent != null) {
|
|
||||||
currentScope = currentScope.parent!!
|
|
||||||
process(currentScope)
|
process(currentScope)
|
||||||
|
currentScope = currentScope.parent ?: break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user