No assertion error in getContainingPseudocode #KT-10983 Fixed

Also #EA-72954 Fixed
This commit is contained in:
Mikhail Glukhikh
2016-02-09 16:05:53 +03:00
parent f6fadc4fa5
commit eed4aa71db
3 changed files with 21 additions and 1 deletions
@@ -299,7 +299,6 @@ fun KtElement.getContainingPseudocode(context: BindingContext): Pseudocode? {
val enclosingPseudocode = PseudocodeUtil.generatePseudocode(enclosingPseudocodeDeclaration, context)
return enclosingPseudocode.getPseudocodeByElement(pseudocodeDeclaration)
?: throw AssertionError("Can't find nested pseudocode for element: ${pseudocodeDeclaration.getElementTextWithContext()}")
}
fun Pseudocode.getPseudocodeByElement(element: KtElement): Pseudocode? {