Analysis API: add KtType.isDenotable()

This commit is contained in:
Tianyu Geng
2021-12-07 13:26:32 -08:00
committed by teamcity
parent 2f393cdd02
commit 5fbe5981f7
20 changed files with 405 additions and 5 deletions
@@ -55,6 +55,8 @@ interface FrontendApiTestConfiguratorService {
fun prepareTestFiles(files: List<KtFile>, module: TestModule, testServices: TestServices) {}
fun doOutOfBlockModification(file: KtFile)
fun preprocessTestDataPath(path: Path) : Path = path
}
abstract class AbstractFrontendApiTest(val configurator: FrontendApiTestConfiguratorService) : TestWithDisposable() {
@@ -138,7 +140,7 @@ abstract class AbstractFrontendApiTest(val configurator: FrontendApiTestConfigur
}
protected fun runTest(@TestDataFile path: String) {
testDataPath = Paths.get(path)
testDataPath = configurator.preprocessTestDataPath(Paths.get(path))
val testConfiguration = testConfiguration(path, configure)
Disposer.register(disposable, testConfiguration.rootDisposable)
val testServices = testConfiguration.testServices