Added diagnostic for EA-70090 - assert: PsiUtilPackage$psiUtils$bbf.getElementTextWithContext

This commit is contained in:
Valentin Kipyatkov
2015-08-14 18:55:16 +03:00
parent 469c5a24de
commit fdf7e483b0
@@ -263,6 +263,8 @@ private fun findFirstLeafWhollyInRange(file: PsiFile, range: TextRange): PsiElem
// ---------------------------------- Debug/logging ----------------------------------------------------------------------------------------
public fun PsiElement.getElementTextWithContext(): String {
assert(isValid) { "Invalid element $this" }
if (this is PsiFile) {
return getContainingFile().getText()
}