We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c4ec8 commit 73f6dacCopy full SHA for 73f6dac
src/org/jetbrains/plugins/scala/lang/psi/api/toplevel/ScNamedElement.scala
@@ -68,7 +68,7 @@ trait ScNamedElement extends ScalaPsiElement with PsiNameIdentifierOwner with Na
68
69
override def getPresentation: ItemPresentation = {
70
val clazz: ScTemplateDefinition =
71
- getParent match {
+ nameContext.getParent match {
72
case _: ScTemplateBody | _: ScEarlyDefinitions =>
73
PsiTreeUtil.getParentOfType(this, classOf[ScTemplateDefinition], true)
74
case _ if this.isInstanceOf[ScClassParameter] =>
@@ -107,4 +107,4 @@ trait ScNamedElement extends ScalaPsiElement with PsiNameIdentifierOwner with Na
107
case _ => None
108
})
109
}
110
-}
+}
0 commit comments