[groovy] show method calls before closure blocks

This commit is contained in:
Vladislav.Soroka
2016-09-14 18:16:46 +03:00
parent a317a6ba1b
commit 649c7a8d36
@@ -48,7 +48,7 @@ class GroovyBreadcrumbsInfoProvider : BreadcrumbsInfoProvider() {
override fun getElementInfo(e: PsiElement) = when (e) {
is GrVariableDeclaration -> e.variables.single().name
is GrClosableBlock -> (e.parent as? GrMethodCall)?.invokedExpression?.text + "{}"
is GrClosableBlock -> (e.parent as? GrMethodCall)?.invokedExpression?.text?:"" + "{}"
is GrAnonymousClassDefinition -> "new ${e.baseClassReferenceGroovy.referenceName}"
is GrMethod -> "${e.name}()"
is GrMember -> e.name!!