Add assertion message
This commit is contained in:
committed by
Alexey Sedunov
parent
d549257bfc
commit
0e451bd35e
+1
-1
@@ -248,7 +248,7 @@ public abstract class KotlinCallerMethodsTreeStructure extends KotlinCallTreeStr
|
||||
if (codeBlockForLocalDeclaration != null) return new WithLocalRoot(project, element, scopeType, codeBlockForLocalDeclaration);
|
||||
|
||||
PsiMethod representativeMethod = getRepresentativePsiMethod(element);
|
||||
assert representativeMethod != null;
|
||||
assert representativeMethod != null : "Can't generate light method: " + element.getText();
|
||||
return new WithNonLocalRoot(project, element, scopeType, representativeMethod);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user