KtClassBody: get parent by stub is possible
This commit is contained in:
@@ -28,6 +28,9 @@ import java.util.*
|
||||
|
||||
class KtClassBody : KtElementImplStub<KotlinPlaceHolderStub<KtClassBody>>, KtDeclarationContainer {
|
||||
constructor(node: ASTNode) : super(node)
|
||||
|
||||
override fun getParent() = parentByStub
|
||||
|
||||
constructor(stub: KotlinPlaceHolderStub<KtClassBody>) : super(stub, CLASS_BODY)
|
||||
|
||||
override fun getDeclarations() = Arrays.asList(*getStubOrPsiChildren(DECLARATION_TYPES, KtDeclaration.ARRAY_FACTORY))
|
||||
|
||||
Reference in New Issue
Block a user