[IR] Introduce & use declaration-based SymbolTable.withReferenceScope
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ interface IrBuilderExtension {
|
||||
|
||||
fun <T : IrDeclaration> T.buildWithScope(builder: (T) -> Unit): T =
|
||||
also { irDeclaration ->
|
||||
compilerContext.symbolTable.withReferenceScope(irDeclaration.descriptor) {
|
||||
compilerContext.symbolTable.withReferenceScope(irDeclaration) {
|
||||
builder(irDeclaration)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user