FIR: Implement lookup tracking

This commit is contained in:
Ilya Chernikov
2020-12-01 10:38:27 +01:00
parent 7d29ae7cce
commit f8d50d585d
41 changed files with 423 additions and 97 deletions
@@ -333,6 +333,7 @@ object KotlinToJVMBytecodeCompiler {
languageVersionSettings,
sourceScope,
librariesScope,
lookupTracker = environment.configuration.get(CommonConfigurationKeys.LOOKUP_TRACKER),
environment::createPackagePartProvider
) {
if (extendedAnalysisMode) {
@@ -350,9 +351,6 @@ object KotlinToJVMBytecodeCompiler {
)
performanceManager?.notifyAnalysisFinished()
// TODO: maybe we should not do it in presence of errors, but tests at the moment expect lookups to be reported
session.firLookupTracker?.flushLookups()
if (syntaxErrors || firDiagnostics.any { it.severity == Severity.ERROR }) {
return false
}