Minor refactorings related to PackagePartProvider and implementations
- Document what exactly should findPackageParts return - Make EMPTY a named object instead of a val in the companion - Do not use JvmPackagePartProvider in tests where Empty works fine - Add a couple default values to arguments of setupResolverForProject
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ class AdditionalBuiltInsMembersSignatureListsTest : KotlinTestWithEnvironment()
|
||||
|
||||
val container = createContainerForTopDownSingleModuleAnalyzerForJvm(
|
||||
moduleContext, CliLightClassGenerationSupport.CliBindingTrace(), providerFactory,
|
||||
GlobalSearchScope.allScope(environment.project), PackagePartProvider.EMPTY
|
||||
GlobalSearchScope.allScope(environment.project), PackagePartProvider.Empty
|
||||
)
|
||||
|
||||
emptyModule.initialize(container.get<JavaDescriptorResolver>().packageFragmentProvider)
|
||||
|
||||
Reference in New Issue
Block a user