[Compiler PSI] Make getContextReceivers default to preserve compatibility

^KT-51747 Fixed
This commit is contained in:
Victor Petukhov
2022-03-29 11:14:38 +03:00
committed by teamcity
parent ccb6331e10
commit 2cfba51a29
@@ -20,6 +20,7 @@ import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collections;
import java.util.List;
public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParameterListOwner {
@@ -33,7 +34,9 @@ public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParamet
KtTypeReference getReceiverTypeReference();
@NotNull
List<KtContextReceiver> getContextReceivers();
default List<KtContextReceiver> getContextReceivers() {
return Collections.emptyList();
}
@Nullable
KtTypeReference getTypeReference();