Add allScopes property to IrElementVisitorVoidWithContext

This commit is contained in:
Sergey Bogolepov
2018-08-30 14:50:46 +03:00
committed by Svyatoslav Scherbina
parent 66b259350a
commit a46b28718e
@@ -139,6 +139,7 @@ abstract class IrElementVisitorVoidWithContext : IrElementVisitorVoid {
protected val currentProperty get() = scopeStack.lastOrNull { it.scope.scopeOwner is PropertyDescriptor }
protected val currentScope get() = scopeStack.peek()
protected val parentScope get() = if (scopeStack.size < 2) null else scopeStack[scopeStack.size - 2]
protected val allScopes get() = scopeStack
fun printScopeStack() {
scopeStack.forEach { println(it.scope.scopeOwner) }