FIR: Correctly handle Java annotations from deserialization

To obtain enhanced declarations, we should use type scope
This commit is contained in:
Denis Zharkov
2020-11-02 20:33:39 +03:00
parent f2b0d057b9
commit a444618c27
2 changed files with 25 additions and 16 deletions
@@ -43,6 +43,10 @@ fun FirScope.getProperties(name: Name): List<FirVariableSymbol<*>> = mutableList
processPropertiesByName(name, this::add)
}
fun FirScope.getDeclaredConstructors(): List<FirConstructorSymbol> = mutableListOf<FirConstructorSymbol>().apply {
processDeclaredConstructors(this::add)
}
fun FirTypeScope.processOverriddenFunctionsAndSelf(
functionSymbol: FirFunctionSymbol<*>,
processor: (FirFunctionSymbol<*>) -> ProcessorAction