Make KtPureElement.getParent() nullable #KT-19760 Fixed

The reason is KtFile.getParent() is a containing directory which is nullable
This commit is contained in:
Mikhail Glukhikh
2017-08-18 15:32:03 +03:00
parent 0fd5c6f1ca
commit 0adf1d210f
2 changed files with 0 additions and 2 deletions
@@ -34,7 +34,6 @@ public interface KtPureElement {
/**
* Returns parent source element.
*/
@NotNull
PsiElement getParent();
@NotNull
@@ -90,7 +90,6 @@ object LabelResolver {
if (parent is KtValueArgument) {
// f ({}) or f(p = {}) or f (fun () {})
// NB: parent of KtElement is really nullable!!!
val argList = parent.parent ?: return null
val call = argList.parent
if (call is KtCallExpression) {