Clean up useless code
This commit is contained in:
-28
@@ -1,28 +0,0 @@
|
|||||||
// This is a generated file. Not intended for manual editing.
|
|
||||||
package org.jetbrains.kotlin.ide.konan.psi;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import org.jetbrains.annotations.*;
|
|
||||||
import com.intellij.lang.ASTNode;
|
|
||||||
import com.intellij.psi.PsiElement;
|
|
||||||
import com.intellij.psi.PsiElementVisitor;
|
|
||||||
import com.intellij.psi.util.PsiTreeUtil;
|
|
||||||
import static org.jetbrains.kotlin.ide.konan.psi.NativeDefinitionsTypes.*;
|
|
||||||
import com.intellij.extapi.psi.ASTWrapperPsiElement;
|
|
||||||
|
|
||||||
public class NativeDefinitionsCodeImpl extends ASTWrapperPsiElement implements NativeDefinitionsCode {
|
|
||||||
|
|
||||||
public NativeDefinitionsCodeImpl(@NotNull ASTNode node) {
|
|
||||||
super(node);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void accept(@NotNull NativeDefinitionsVisitor visitor) {
|
|
||||||
visitor.visitCode(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void accept(@NotNull PsiElementVisitor visitor) {
|
|
||||||
if (visitor instanceof NativeDefinitionsVisitor) accept((NativeDefinitionsVisitor)visitor);
|
|
||||||
else super.accept(visitor);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -11,9 +11,10 @@ import com.intellij.lang.ASTNode
|
|||||||
import com.intellij.openapi.util.TextRange
|
import com.intellij.openapi.util.TextRange
|
||||||
import com.intellij.psi.ElementManipulators
|
import com.intellij.psi.ElementManipulators
|
||||||
import com.intellij.psi.LiteralTextEscaper
|
import com.intellij.psi.LiteralTextEscaper
|
||||||
|
import com.intellij.psi.PsiElementVisitor
|
||||||
import com.intellij.psi.PsiLanguageInjectionHost
|
import com.intellij.psi.PsiLanguageInjectionHost
|
||||||
import com.intellij.psi.tree.IElementType
|
import com.intellij.psi.tree.IElementType
|
||||||
import org.jetbrains.kotlin.ide.konan.*
|
import org.jetbrains.kotlin.ide.konan.NativeDefinitionsLanguage
|
||||||
|
|
||||||
class NativeDefinitionsElementType(debugName: String) : IElementType(debugName, NativeDefinitionsLanguage.INSTANCE)
|
class NativeDefinitionsElementType(debugName: String) : IElementType(debugName, NativeDefinitionsLanguage.INSTANCE)
|
||||||
|
|
||||||
@@ -42,5 +43,15 @@ class NativeDefinitionsCodeImpl(node: ASTNode) : ASTWrapperPsiElement(node), Nat
|
|||||||
return CodeEscaper(this)
|
return CodeEscaper(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun accept(visitor: NativeDefinitionsVisitor) {
|
||||||
|
visitor.visitCode(this)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun accept(visitor: PsiElementVisitor) {
|
||||||
|
if (visitor is NativeDefinitionsVisitor) accept(visitor) else super.accept(
|
||||||
|
visitor
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
override fun isValidHost(): Boolean = true
|
override fun isValidHost(): Boolean = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user