Add assertion message

This commit is contained in:
Aleksei Sedunov
2014-02-07 00:41:47 +04:00
committed by Alexey Sedunov
parent d549257bfc
commit 0e451bd35e
@@ -248,7 +248,7 @@ public abstract class KotlinCallerMethodsTreeStructure extends KotlinCallTreeStr
if (codeBlockForLocalDeclaration != null) return new WithLocalRoot(project, element, scopeType, codeBlockForLocalDeclaration); if (codeBlockForLocalDeclaration != null) return new WithLocalRoot(project, element, scopeType, codeBlockForLocalDeclaration);
PsiMethod representativeMethod = getRepresentativePsiMethod(element); PsiMethod representativeMethod = getRepresentativePsiMethod(element);
assert representativeMethod != null; assert representativeMethod != null : "Can't generate light method: " + element.getText();
return new WithNonLocalRoot(project, element, scopeType, representativeMethod); return new WithNonLocalRoot(project, element, scopeType, representativeMethod);
} }
} }