code cleanup: frontend.java module
This commit is contained in:
+4
-4
@@ -34,10 +34,10 @@ abstract class JavaAnnotationArgumentImpl(
|
||||
}
|
||||
|
||||
return when (argument) {
|
||||
is PsiReferenceExpression -> JavaEnumValueAnnotationArgumentImpl(argument as PsiReferenceExpression, name)
|
||||
is PsiArrayInitializerMemberValue -> JavaArrayAnnotationArgumentImpl(argument as PsiArrayInitializerMemberValue, name)
|
||||
is PsiAnnotation -> JavaAnnotationAsAnnotationArgumentImpl(argument as PsiAnnotation, name)
|
||||
is PsiClassObjectAccessExpression -> JavaClassObjectAnnotationArgumentImpl(argument as PsiClassObjectAccessExpression, name)
|
||||
is PsiReferenceExpression -> JavaEnumValueAnnotationArgumentImpl(argument, name)
|
||||
is PsiArrayInitializerMemberValue -> JavaArrayAnnotationArgumentImpl(argument, name)
|
||||
is PsiAnnotation -> JavaAnnotationAsAnnotationArgumentImpl(argument, name)
|
||||
is PsiClassObjectAccessExpression -> JavaClassObjectAnnotationArgumentImpl(argument, name)
|
||||
else -> throw UnsupportedOperationException("Unsupported annotation argument type: " + argument)
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -18,7 +18,7 @@ package org.jetbrains.kotlin.load.kotlin.incremental.cache
|
||||
|
||||
import java.io.File
|
||||
|
||||
public trait IncrementalCache {
|
||||
public interface IncrementalCache {
|
||||
public fun getObsoletePackageParts(): Collection<String>
|
||||
|
||||
public fun getPackageData(fqName: String): ByteArray?
|
||||
|
||||
+1
-1
@@ -16,6 +16,6 @@
|
||||
|
||||
package org.jetbrains.kotlin.load.kotlin.incremental.cache
|
||||
|
||||
public trait IncrementalCacheProvider {
|
||||
public interface IncrementalCacheProvider {
|
||||
public fun getIncrementalCache(moduleId: String): IncrementalCache
|
||||
}
|
||||
|
||||
+1
-1
@@ -21,6 +21,6 @@ import com.intellij.psi.impl.file.impl.JavaFileManager
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import org.jetbrains.kotlin.name.ClassId
|
||||
|
||||
public trait KotlinCliJavaFileManager : JavaFileManager {
|
||||
public interface KotlinCliJavaFileManager : JavaFileManager {
|
||||
public fun findClass(classId: ClassId, searchScope: GlobalSearchScope): PsiClass?
|
||||
}
|
||||
+1
-1
@@ -18,7 +18,7 @@ package org.jetbrains.kotlin.resolve.jvm.jvmSignature
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
||||
|
||||
public trait KotlinToJvmSignatureMapper {
|
||||
public interface KotlinToJvmSignatureMapper {
|
||||
public fun mapToJvmMethodSignature(function: FunctionDescriptor): JvmMethodSignature
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user