Always create test files, directive processing would be based on them
This is required for extracted 'getTestJdkKind' in previous commits
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ abstract class AbstractCompilerLightClassTest : KotlinMultiFileTestWithJava<Kotl
|
||||
fileName: String,
|
||||
text: String,
|
||||
directives: Map<String, String>
|
||||
): TestFile? = null
|
||||
): TestFile = TestFile(fileName, text)
|
||||
|
||||
companion object {
|
||||
fun findLightClass(allowFrontendExceptions: Boolean, environment: KotlinCoreEnvironment, fqname: String): PsiClass? {
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ abstract class KotlinMultiFileTestWithJava<M : KotlinBaseTest.TestModule, F : Ko
|
||||
|
||||
protected abstract fun createTestModule(name: String, dependencies: List<String>, friends: List<String>): M?
|
||||
|
||||
protected abstract fun createTestFile(module: M?, fileName: String, text: String, directives: Map<String, String>): F?
|
||||
protected abstract fun createTestFile(module: M?, fileName: String, text: String, directives: Map<String, String>): F
|
||||
|
||||
protected open fun createTestFiles(
|
||||
file: File,
|
||||
|
||||
Reference in New Issue
Block a user