VersionNeutralTopDownAnalyzerFacadeForJVM
This is a compatibility shim for invoking Kotlin 1.6.2x compiler analysis using the 1.6.10 classes. The explicitCompilerEnvironment: TargetEnvironment = CompilerEnvironment
argument with default was added in 1.6.20, and causes a NotSuchMethodError
exception if parsing a 1.6.2x project with 1.6.10 source.
Functions
Link copied to clipboard
fun analyzeFilesWithJavaIntegration(project: Project, files: Collection<KtFile>, trace: BindingTrace, configuration: CompilerConfiguration, packagePartProvider: (GlobalSearchScope) -> PackagePartProvider, declarationProviderFactory: (StorageManager, Collection<KtFile>) -> DeclarationProviderFactory = ::FileBasedDeclarationProviderFactory, sourceModuleSearchScope: GlobalSearchScope = TopDownAnalyzerFacadeForJVM.newModuleSearchScope(
project,
files
), klibList: List<KotlinLibrary> = emptyList(), explicitModuleDependencyList: List<ModuleDescriptorImpl> = emptyList(), explicitModuleFriendsList: List<ModuleDescriptorImpl> = emptyList(), explicitCompilerEnvironment: TargetEnvironment = CompilerEnvironment): AnalysisResult
Performs the full analysis of this source set/configuration, returning the AnalysisResult so that we can use the BindingContext for type resolution.