From 649c7a8d36678c3d0729d37ca8098b2956c896b8 Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Wed, 14 Sep 2016 18:15:34 +0300 Subject: [PATCH] [groovy] show method calls before closure blocks --- .../plugins/groovy/editor/GroovyBreadcrumbsInfoProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/editor/GroovyBreadcrumbsInfoProvider.kt b/plugins/groovy/src/org/jetbrains/plugins/groovy/editor/GroovyBreadcrumbsInfoProvider.kt index ed30b857ae17..e69312dc7949 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/editor/GroovyBreadcrumbsInfoProvider.kt +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/editor/GroovyBreadcrumbsInfoProvider.kt @@ -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!!