From b4bc6590086a7e4272f67b9dca2b6c9c26211b01 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 30 Aug 2023 17:07:19 +0300 Subject: [PATCH] [FIR] Update documentation of AbstractPredicate about matching local declarations ^KT-52449 Obsolete --- .../kotlin/fir/extensions/predicate/AbstractPredicate.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/extensions/predicate/AbstractPredicate.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/extensions/predicate/AbstractPredicate.kt index 42f03eae325..abb24442a94 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/extensions/predicate/AbstractPredicate.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/extensions/predicate/AbstractPredicate.kt @@ -20,6 +20,10 @@ import org.jetbrains.kotlin.fir.extensions.FirPredicateBasedProvider * The main difference between [LookupPredicate] and [DeclarationPredicate] is that [DeclarationPredicate] allows * to create predicate with meta annotations, and [LookupPredicate] allows to use only annotations with predefined * qualified names + * + * Note that predicates can not be used for matching or looking up for local declarations (local functions, local classes, anonymous objects + * and their members). The only exception is matching local classes/anonymous objects with [AbstractPredicate.AnnotatedWith] and + * [AbstractPredicate.MetaAnnotatedWith] by [FirPredicateBasedProvider.matches] */ sealed interface AbstractPredicate

> { val annotations: Set