Fix for KT-1479 Can't see children of class object in structure view
This commit is contained in:
committed by
Nikolay Krasko
parent
190e539365
commit
52dcbb565f
@@ -132,6 +132,13 @@ public class JetStructureViewElement implements StructureViewTreeElement {
|
|||||||
else if (myElement instanceof JetClassOrObject) {
|
else if (myElement instanceof JetClassOrObject) {
|
||||||
return wrapDeclarations(((JetClassOrObject) myElement).getDeclarations());
|
return wrapDeclarations(((JetClassOrObject) myElement).getDeclarations());
|
||||||
}
|
}
|
||||||
|
else if (myElement instanceof JetClassObject) {
|
||||||
|
JetObjectDeclaration objectDeclaration = ((JetClassObject) myElement).getObjectDeclaration();
|
||||||
|
if (objectDeclaration != null) {
|
||||||
|
return wrapDeclarations(objectDeclaration.getDeclarations());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new TreeElement[0];
|
return new TreeElement[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user