Moved class
This commit is contained in:
+16
@@ -18,6 +18,7 @@ package org.jetbrains.kotlin.idea.core.completion
|
||||
|
||||
import com.intellij.openapi.util.Iconable
|
||||
import com.intellij.psi.PsiElement
|
||||
import com.intellij.util.PlatformIcons
|
||||
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
|
||||
import org.jetbrains.kotlin.name.FqName
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
@@ -29,3 +30,18 @@ public interface DeclarationLookupObject : Iconable {
|
||||
public val importableFqName: FqName?
|
||||
public val isDeprecated: Boolean
|
||||
}
|
||||
|
||||
public data class PackageLookupObject(val fqName: FqName) : DeclarationLookupObject {
|
||||
override val psiElement: PsiElement? get() = null
|
||||
|
||||
override val descriptor: DeclarationDescriptor? get() = null
|
||||
|
||||
override val name: Name get() = fqName.shortName()
|
||||
|
||||
override val importableFqName: FqName get() = fqName
|
||||
|
||||
override val isDeprecated: Boolean get() = false
|
||||
|
||||
override fun getIcon(flags: Int) = PlatformIcons.PACKAGE_ICON
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user