[FIR] Add MetadataSymbolProvider

Extract common code from K1 to MetadataUtil
This commit is contained in:
Ivan Kochurkin
2023-01-16 23:24:23 +01:00
committed by Space Team
parent c103da98dd
commit e22359cc10
9 changed files with 166 additions and 36 deletions
@@ -27,6 +27,8 @@ interface KotlinMetadataFinder {
*/
fun findMetadata(classId: ClassId): InputStream?
fun findMetadataTopLevelClassesInPackage(packageFqName: FqName): Set<String>?
/**
* @return `true` iff this finder is able to locate the package with the given [fqName], containing .kotlin_metadata files.
* Note that returning `true` makes [MetadataPackageFragmentProvider] construct the package fragment for the package,