KT-15796 Import of class referenced only in KDoc not preserved after copy-paste

#KT-15796 fixed
This commit is contained in:
Simon Ogorodnik
2017-01-23 21:08:42 +03:00
parent 4ca10c61fd
commit e220a20eed
8 changed files with 59 additions and 10 deletions
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.psi.KtDeclaration
import org.jetbrains.kotlin.kdoc.parser.KDocKnownTag
// Don't implement JetElement (or it will be treated as statement)
interface KDoc : PsiComment {
interface KDoc : PsiComment, KDocElement {
fun getOwner(): KtDeclaration?
fun getDefaultSection(): KDocSection
fun findSectionByName(name: String): KDocSection?
@@ -21,8 +21,9 @@ import com.intellij.lang.ASTNode;
import com.intellij.lang.Language;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.idea.KotlinLanguage;
import org.jetbrains.kotlin.kdoc.psi.api.KDocElement;
public abstract class KDocElementImpl extends ASTWrapperPsiElement {
public abstract class KDocElementImpl extends ASTWrapperPsiElement implements KDocElement {
@NotNull
@Override
public Language getLanguage() {