Moved class

This commit is contained in:
Valentin Kipyatkov
2015-08-26 18:16:37 +03:00
parent 6e6e80cc2a
commit cff817d03b
3 changed files with 18 additions and 14 deletions
@@ -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
}